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)