Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
9e474c3c
Unverified
Commit
9e474c3c
authored
Mar 16, 2021
by
Philip Meier
Committed by
GitHub
Mar 16, 2021
Browse files
Add explanation for injected fake data in dataset tests (#3576)
parent
d0abd1f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
test/datasets_utils.py
test/datasets_utils.py
+4
-0
No files found.
test/datasets_utils.py
View file @
9e474c3c
...
@@ -266,6 +266,10 @@ class DatasetTestCase(unittest.TestCase):
...
@@ -266,6 +266,10 @@ class DatasetTestCase(unittest.TestCase):
def
inject_fake_data
(
self
,
tmpdir
:
str
,
config
:
Dict
[
str
,
Any
])
->
Union
[
int
,
Dict
[
str
,
Any
]]:
def
inject_fake_data
(
self
,
tmpdir
:
str
,
config
:
Dict
[
str
,
Any
])
->
Union
[
int
,
Dict
[
str
,
Any
]]:
"""Inject fake data for dataset into a temporary directory.
"""Inject fake data for dataset into a temporary directory.
During the creation of the dataset the download and extract logic is disabled. Thus, the fake data injected
here needs to resemble the raw data, i.e. the state of the dataset directly after the files are downloaded and
potentially extracted.
Args:
Args:
tmpdir (str): Path to a temporary directory. For most cases this acts as root directory for the dataset
tmpdir (str): Path to a temporary directory. For most cases this acts as root directory for the dataset
to be created and in turn also for the fake data injected here.
to be created and in turn also for the fake data injected here.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment