source: flex_extract.git/source/pythontest/TestPathes.py @ 25b14be

ctbtodev
Last change on this file since 25b14be 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
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3
4import os
5import sys
6import pytest
7
8sys.path.append("../python")
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