source: flex_extract.git/python/pythontest/TestPathes.py @ 222aa11

dev
Last change on this file since 222aa11 was 222aa11, checked in by Anne Philipp <anne.philipp@…>, 17 months ago

added pathes in config file and according testcases

  • Property mode set to 100644
File size: 935 bytes
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3
4import os
5import sys
6import pytest
7
8sys.path.append("../")
9import _config
10
11def test_path_localpython():
12    assert os.path.exists(_config.PATH_LOCAL_PYTHON) == 1
13
14def test_path_flexextract():
15    assert os.path.exists(_config.PATH_FLEXEXTRACT_DIR) == 1
16
17def test_path_flexextract_name():
18    version = _config._VERSION_STR
19    flexextract_name = 'flex_extract_v' + version
20    assert os.path.basename(_config.PATH_FLEXEXTRACT_DIR) == flexextract_name
21
22def test_path_templates():
23    assert os.path.exists(_config.PATH_TEMPLATES) == 1
24
25def test_path_vtable():
26    assert os.path.exists(_config.PATH_GRIBTABLE) == 1
27
28def test_file_vtable():
29    assert os.path.isfile(_config.PATH_GRIBTABLE) == 1
30
31def test_path_run():
32    assert os.path.exists(_config.PATH_RUN_DIR) == 1
33
34def test_path_control():
35    assert os.path.exists(_config.PATH_CONTROLFILES) == 1
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG