From 1bfcbd7afc4ad43c74be469e2c90d51a30374a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Mon, 6 Jan 2025 08:53:38 +0100 Subject: [PATCH] TST: update due to more informative error message --- tests/test_misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_misc.py b/tests/test_misc.py index 79aff21..246fdcf 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -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 " -- GitLab