Skip to content

conftest

converter.tests.conftest

project_shieldhit_json

project_shieldhit_json(project_shieldhit_path)

Dictionary with project data for SHIELD-HIT12A

Source code in yaptide/converter/tests/conftest.py
13
14
15
16
17
@pytest.fixture(scope='session')
def project_shieldhit_json(project_shieldhit_path) -> dict:
    """Dictionary with project data for SHIELD-HIT12A"""
    with open(project_shieldhit_path, 'r') as file_handle:
        return json.load(file_handle)

project_shieldhit_json_with_sobp_dat

project_shieldhit_json_with_sobp_dat(
    project_shieldhit_with_sobp_dat_path,
)

Dictionary with project data for SHIELD-HIT12A

Source code in yaptide/converter/tests/conftest.py
28
29
30
31
32
@pytest.fixture(scope='session')
def project_shieldhit_json_with_sobp_dat(project_shieldhit_with_sobp_dat_path) -> dict:
    """Dictionary with project data for SHIELD-HIT12A"""
    with open(project_shieldhit_with_sobp_dat_path, 'r') as file_handle:
        return json.load(file_handle)

project_shieldhit_path

project_shieldhit_path()

Path to SHIELD-HIT12A project.json file

Source code in yaptide/converter/tests/conftest.py
 5
 6
 7
 8
 9
10
@pytest.fixture(scope='session')
def project_shieldhit_path() -> Path:
    """Path to SHIELD-HIT12A project.json file"""
    this_file_location = Path(__file__).parent
    json_file_path = this_file_location / 'shieldhit' / 'resources' / 'project.json'
    return json_file_path

project_shieldhit_with_sobp_dat_path

project_shieldhit_with_sobp_dat_path()

Path to SHIELD-HIT12A project.json file

Source code in yaptide/converter/tests/conftest.py
20
21
22
23
24
25
@pytest.fixture(scope='session')
def project_shieldhit_with_sobp_dat_path() -> Path:
    """Path to SHIELD-HIT12A project.json file"""
    this_file_location = Path(__file__).parent
    json_file_path = this_file_location / 'shieldhit' / 'resources' / 'project_with_sobp.json'
    return json_file_path