Changeset View
Changeset View
Standalone View
Standalone View
swh/model/tests/test_hypothesis_strategies.py
Show All 26 Lines | all_but_skipped_content = ( | ||||
"origin", | "origin", | ||||
"origin_visit", | "origin_visit", | ||||
"origin_visit_status", | "origin_visit_status", | ||||
"snapshot", | "snapshot", | ||||
"release", | "release", | ||||
"revision", | "revision", | ||||
"directory", | "directory", | ||||
"content", | "content", | ||||
"extid", | |||||
) | ) | ||||
@given(objects(blacklist_types=())) | @given(objects(blacklist_types=())) | ||||
def test_generation(obj_type_and_obj): | def test_generation(obj_type_and_obj): | ||||
(obj_type, object_) = obj_type_and_obj | (obj_type, object_) = obj_type_and_obj | ||||
attr.validate(object_) | attr.validate(object_) | ||||
▲ Show 20 Lines • Show All 167 Lines • Show Last 20 Lines |