Skip to content

Commit

Permalink
🔨 Parametrize settings for OIDC enabled/disabled
Browse files Browse the repository at this point in the history
This will allow us to make different test envs/builds to check the
correct functioning of the library with and without OIDC.
  • Loading branch information
sergei-maertens committed May 28, 2024
1 parent 0bedd5c commit a914579
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@


# Application definition
_OIDC_APPS = [
"django_jsonform",
"mozilla_django_oidc",
"mozilla_django_oidc_db",
"digid_eherkenning.oidc",
]

INSTALLED_APPS = [
"django.contrib.admin",
Expand All @@ -42,15 +48,14 @@
"sessionprofile",
"privates",
"simple_certmanager",
"django_jsonform",
"solo",
"mozilla_django_oidc",
"mozilla_django_oidc_db",
# own apps
"digid_eherkenning",
"digid_eherkenning.oidc",
"tests.project",
]
if os.environ.get("OIDC_ENABLED", False):
INSTALLED_APPS += _OIDC_APPS


MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
Expand Down

0 comments on commit a914579

Please sign in to comment.