Skip to content
Snippets Groups Projects
Commit 1bfcbd7a authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

TST: update due to more informative error message

parent aeacf439
No related branches found
No related tags found
1 merge request!88TST: update due to more informative error message
Pipeline #59566 passed with warnings
......@@ -499,7 +499,7 @@ def test_retrieve_wrong_role(clear_database):
assert entity.role == "Record"
with raises(ValueError) as cm:
entity.retrieve()
assert cm.value.args[0] == ("The resulting entity had a different role "
assert cm.value.args[0].startswith("The resulting entity had a different role "
"(RecordType) than the local one (Record). "
"This probably means, that the entity was "
"intialized with a wrong class by this client "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment