Skip to content
Snippets Groups Projects
Commit 5aeb7251 authored by Daniel Lyons's avatar Daniel Lyons Committed by Janet Goldstein
Browse files

Reinsert get_locations_file and copying utilities.py into the datafetcher/test area

parent 6c14fb76
No related branches found
No related tags found
1 merge request!173remove system exits from datafetcher tests
......@@ -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):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment