Skip to content

Commit

Permalink
Issue/update latest versions (#137)
Browse files Browse the repository at this point in the history
* Update requirements

* Update settings and fix tests
  • Loading branch information
danielmursa-dev authored Dec 17, 2024
1 parent 3181a5b commit e8d22de
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ furl
# Framework libraries
django-jsonsuit
sharing-configs
django-setup-configuration>=0.4.0
django-setup-configuration>=0.5.0
mozilla-django-oidc-db[django-setup-configuration]

# API libraries
Expand Down
4 changes: 2 additions & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ django-sendfile2==0.7.0
# via django-privates
django-sessionprofile==3.0.0
# via open-api-framework
django-setup-configuration==0.4.0
django-setup-configuration==0.5.0
# via
# -r requirements/base.in
# open-api-framework
Expand Down Expand Up @@ -252,7 +252,7 @@ mozilla-django-oidc-db[django-setup-configuration]==0.21.1
# open-api-framework
notifications-api-common==0.3.1
# via commonground-api-common
open-api-framework==0.9.0
open-api-framework==0.9.1
# via -r requirements/base.in
orderedmultidict==1.0.1
# via furl
Expand Down
4 changes: 2 additions & 2 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ django-sessionprofile==3.0.0
# via
# -r requirements/base.txt
# open-api-framework
django-setup-configuration==0.4.0
django-setup-configuration==0.5.0
# via
# -r requirements/base.txt
# open-api-framework
Expand Down Expand Up @@ -412,7 +412,7 @@ notifications-api-common==0.3.1
# via
# -r requirements/base.txt
# commonground-api-common
open-api-framework==0.9.0
open-api-framework==0.9.1
# via -r requirements/base.txt
orderedmultidict==1.0.1
# via
Expand Down
4 changes: 2 additions & 2 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ django-sessionprofile==3.0.0
# via
# -r requirements/base.txt
# open-api-framework
django-setup-configuration==0.4.0
django-setup-configuration==0.5.0
# via
# -r requirements/base.txt
# open-api-framework
Expand Down Expand Up @@ -430,7 +430,7 @@ notifications-api-common==0.3.1
# via
# -r requirements/base.txt
# commonground-api-common
open-api-framework==0.9.0
open-api-framework==0.9.1
# via -r requirements/base.txt
orderedmultidict==1.0.1
# via
Expand Down
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 e8d22de

Please sign in to comment.