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

enum-cleanup: use ModelObjectType in `test_ensure_visit_status_snapshot_consistency`

parent 05b8e7e0
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ def test_ensure_visit_status_date_consistency():
def test_ensure_visit_status_snapshot_consistency():
"""ensure origin-visit-status snapshots exist in the test dataset"""
snapshots = [snp.id for snp in TEST_OBJECTS["snapshot"]]
for visit_status in TEST_OBJECTS["origin_visit_status"]:
snapshots = [snp.id for snp in TEST_OBJECTS[ModelObjectType.SNAPSHOT]]
for visit_status in TEST_OBJECTS[ModelObjectType.ORIGIN_VISIT_STATUS]:
if visit_status.snapshot:
assert visit_status.snapshot in snapshots
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