Skip to content

Commit

Permalink
Update settings and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmursa-dev committed Dec 17, 2024
1 parent 1acb272 commit a8bba49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/objecttypes/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@
#
SETUP_CONFIGURATION_STEPS = [
"objecttypes.setup_configuration.steps.token_auth.TokenAuthConfigurationStep",
"django_setup_configuration.contrib.sites.steps.SitesConfigurationStep",
"mozilla_django_oidc_db.setup_configuration.steps.AdminOIDCConfigurationStep",
]
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,7 @@ 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"
in str(command_error.exception)
)
self.assertTrue("String should match pattern" in str(command_error.exception))
self.assertEqual(TokenAuth.objects.count(), 0)

0 comments on commit a8bba49

Please sign in to comment.