Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-model
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
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform
Development
swh-model
Commits
e3f7a03b
Commit
e3f7a03b
authored
11 months ago
by
Pierre-Yves David
Committed by
Pierre-Yves David
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
enum-cleanup: use ModelObjectType in `test_swh_model_data`
parent
20d4ee14
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!352
move various string "object_type" usage to the enums
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/model/tests/test_swh_model_data.py
+7
-1
7 additions, 1 deletion
swh/model/tests/test_swh_model_data.py
with
7 additions
and
1 deletion
swh/model/tests/test_swh_model_data.py
+
7
−
1
View file @
e3f7a03b
...
...
@@ -6,6 +6,7 @@
import
attr
import
pytest
from
swh.model.model
import
ModelObjectType
from
swh.model.tests.swh_model_data
import
TEST_OBJECTS
...
...
@@ -20,7 +21,12 @@ def test_swh_model_data(object_type, objects):
@pytest.mark.parametrize
(
"
object_type
"
,
(
"
directory
"
,
"
revision
"
,
"
release
"
,
"
snapshot
"
),
(
ModelObjectType
.
DIRECTORY
,
ModelObjectType
.
REVISION
,
ModelObjectType
.
RELEASE
,
ModelObjectType
.
SNAPSHOT
,
),
)
def
test_swh_model_data_hash
(
object_type
):
for
obj
in
TEST_OBJECTS
[
object_type
]:
...
...
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