From 07152272d0809c75acdbe17b78c1c5be9b2548ce Mon Sep 17 00:00:00 2001 From: Daniel Mursa Date: Fri, 13 Dec 2024 17:00:02 +0100 Subject: [PATCH] [maykinmedia/objects-api#480] Fix tests after new release --- .../setup_configuration/tests/test_token_auth_config.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/objecttypes/setup_configuration/tests/test_token_auth_config.py b/src/objecttypes/setup_configuration/tests/test_token_auth_config.py index 2b494f9..8bb23d4 100644 --- a/src/objecttypes/setup_configuration/tests/test_token_auth_config.py +++ b/src/objecttypes/setup_configuration/tests/test_token_auth_config.py @@ -351,11 +351,10 @@ def test_invalid_setup_identifier(self): ], }, } - with self.assertRaises(ConfigurationRunFailed) as command_error: + with self.assertRaises(PrerequisiteFailed) as command_error: execute_single_step(TokenAuthConfigurationStep, object_source=object_source) - self.assertTrue( - "Validation error(s) occured for invalid identifier" + "String should match pattern" in str(command_error.exception) ) self.assertEqual(TokenAuth.objects.count(), 0)