ctbtodev
Last change
on this file since 5551626 was
25b14be,
checked in by Anne Philipp <anne.philipp@…>, 6 years ago
|
changed whole tree structure of flex_extract to have better overview
|
-
Property mode set to
100644
|
File size:
941 bytes
|
Rev | Line | |
---|
[067a0c3] | 1 | #!/usr/bin/env python |
---|
| 2 | # -*- coding: utf-8 -*- |
---|
| 3 | |
---|
[dda0e9d] | 4 | import os |
---|
| 5 | import sys |
---|
[067a0c3] | 6 | import pytest |
---|
| 7 | |
---|
[25b14be] | 8 | sys.path.append("../python") |
---|
[dda0e9d] | 9 | import _config |
---|
[067a0c3] | 10 | |
---|
[222aa11] | 11 | def test_path_localpython(): |
---|
| 12 | assert os.path.exists(_config.PATH_LOCAL_PYTHON) == 1 |
---|
| 13 | |
---|
| 14 | def test_path_flexextract(): |
---|
| 15 | assert os.path.exists(_config.PATH_FLEXEXTRACT_DIR) == 1 |
---|
| 16 | |
---|
| 17 | def 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 | |
---|
| 22 | def test_path_templates(): |
---|
| 23 | assert os.path.exists(_config.PATH_TEMPLATES) == 1 |
---|
[dda0e9d] | 24 | |
---|
| 25 | def test_path_vtable(): |
---|
| 26 | assert os.path.exists(_config.PATH_GRIBTABLE) == 1 |
---|
| 27 | |
---|
| 28 | def test_file_vtable(): |
---|
| 29 | assert os.path.isfile(_config.PATH_GRIBTABLE) == 1 |
---|
[067a0c3] | 30 | |
---|
[222aa11] | 31 | def test_path_run(): |
---|
| 32 | assert os.path.exists(_config.PATH_RUN_DIR) == 1 |
---|
| 33 | |
---|
| 34 | def test_path_control(): |
---|
| 35 | assert os.path.exists(_config.PATH_CONTROLFILES) == 1 |
---|
Note: See
TracBrowser
for help on using the repository browser.