Skip to content
Snippets Groups Projects

remove system exits from datafetcher tests

Merged Janet Goldstein requested to merge WS-179-4-remove-sys-exits into main
All threads resolved!
2 files
+ 154
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -36,7 +36,7 @@ from pycapo import CapoConfig
# pylint: disable=C0115, C0116, C0200, R0902, R0903, R0914, R1721, W0212, W0613, W0621, W0703, W1203
sys.path.insert(0, str(get_project_root()))
from shared.workspaces.test.test_data.utilities import (
from .utilities import (
get_locations_report,
get_test_data_dir,
)
@@ -95,6 +95,19 @@ LOCATION_REPORTS = {
}
def get_locations_file(key: str):
"""
Return location report file specified by key
:param key: location report name
:return:
"""
report_spec = LOCATION_REPORTS[key]
filename = report_spec["filename"]
return Path(get_test_data_dir(), filename)
def write_locations_file(destination: Path, locations_report: LocationsReport):
"""
Loading