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
358fc6dd
Unverified
Commit
358fc6dd
authored
Mar 07, 2022
by
Philip Meier
Committed by
GitHub
Mar 07, 2022
Browse files
check that prototype datasets are serializable (#5557)
parent
b2d42a24
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test/test_prototype_builtin_datasets.py
test/test_prototype_builtin_datasets.py
+3
-2
No files found.
test/test_prototype_builtin_datasets.py
View file @
358fc6dd
import
functools
import
functools
import
io
import
io
import
pickle
from
pathlib
import
Path
from
pathlib
import
Path
import
pytest
import
pytest
...
@@ -108,12 +109,12 @@ class TestCommon:
...
@@ -108,12 +109,12 @@ class TestCommon:
next
(
iter
(
dataset
.
map
(
transforms
.
Identity
())))
next
(
iter
(
dataset
.
map
(
transforms
.
Identity
())))
@
parametrize_dataset_mocks
(
DATASET_MOCKS
)
@
parametrize_dataset_mocks
(
DATASET_MOCKS
)
def
test_
travers
able
(
self
,
test_home
,
dataset_mock
,
config
):
def
test_
serializ
able
(
self
,
test_home
,
dataset_mock
,
config
):
dataset_mock
.
prepare
(
test_home
,
config
)
dataset_mock
.
prepare
(
test_home
,
config
)
dataset
=
datasets
.
load
(
dataset_mock
.
name
,
**
config
)
dataset
=
datasets
.
load
(
dataset_mock
.
name
,
**
config
)
traverse
(
dataset
)
pickle
.
dumps
(
dataset
)
@
parametrize_dataset_mocks
(
DATASET_MOCKS
)
@
parametrize_dataset_mocks
(
DATASET_MOCKS
)
@
pytest
.
mark
.
parametrize
(
"annotation_dp_type"
,
(
Shuffler
,
ShardingFilter
))
@
pytest
.
mark
.
parametrize
(
"annotation_dp_type"
,
(
Shuffler
,
ShardingFilter
))
...
...
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