Skip to content
Snippets Groups Projects
Commit e3f7a03b authored by Pierre-Yves David's avatar Pierre-Yves David Committed by Pierre-Yves David
Browse files

enum-cleanup: use ModelObjectType in `test_swh_model_data`

parent 20d4ee14
No related branches found
No related tags found
1 merge request!352move various string "object_type" usage to the enums
......@@ -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]:
......
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