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

enum-cleanup: stop using string value in `test_anonymization`

parent de319040
No related branches found
No related tags found
No related merge requests found
......@@ -390,13 +390,13 @@ def test_anonymization(objtype_and_obj):
assert len(p.fullname) == 32
anon_obj = obj.anonymize()
if obj_type == "person":
if obj_type == ModelObjectType.PERSON:
assert anon_obj is not None
check_person(anon_obj)
elif obj_type == "release":
elif obj_type == ModelObjectType.RELEASE:
assert anon_obj is not None
check_person(anon_obj.author)
elif obj_type == "revision":
elif obj_type == ModelObjectType.REVISION:
assert anon_obj is not None
check_person(anon_obj.author)
check_person(anon_obj.committer)
......
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