Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
5aeb7251
Commit
5aeb7251
authored
4 years ago
by
Daniel Lyons
Committed by
Janet Goldstein
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Reinsert get_locations_file and copying utilities.py into the datafetcher/test area
parent
6c14fb76
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!173
remove system exits from datafetcher tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/cli/executables/datafetcher/test/df_pytest_utils.py
+14
-1
14 additions, 1 deletion
apps/cli/executables/datafetcher/test/df_pytest_utils.py
with
14 additions
and
1 deletion
apps/cli/executables/datafetcher/test/df_pytest_utils.py
+
14
−
1
View file @
5aeb7251
...
...
@@ -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
):
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment