Changeset View
Changeset View
Standalone View
Standalone View
swh/model/tests/test_model.py
Show First 20 Lines • Show All 1,218 Lines • ▼ Show 20 Lines | ): | ||||
type=MetadataTargetType.CONTENT, | type=MetadataTargetType.CONTENT, | ||||
target=_content_swhid, | target=_content_swhid, | ||||
directory=SWHID( | directory=SWHID( | ||||
object_type="content", | object_type="content", | ||||
object_id="94a9ed024d3859793618152ea559a168bbcbb5e2", | object_id="94a9ed024d3859793618152ea559a168bbcbb5e2", | ||||
), | ), | ||||
**_common_metadata_fields, | **_common_metadata_fields, | ||||
) | ) | ||||
@given(strategies.extids()) | |||||
def test_extid(extid): | |||||
assert extid | |||||
assert extid.unique_key() | |||||
assert extid.target_type.value in ( | |||||
"content", | |||||
"directory", | |||||
"revision", | |||||
"release", | |||||
"snapshot", | |||||
) |