diff --git a/.gitignore b/.gitignore index 83758143b..70d81b559 100644 --- a/.gitignore +++ b/.gitignore @@ -54,5 +54,5 @@ _build db.sqlite3 venv/ - -/tests/app/idp/static + +/tests/app/idp/static diff --git a/tests/app/idp/idp/settings.py b/tests/app/idp/idp/settings.py index 67a1109e0..19d6af543 100644 --- a/tests/app/idp/idp/settings.py +++ b/tests/app/idp/idp/settings.py @@ -10,10 +10,10 @@ https://docs.djangoproject.com/en/4.2/ref/settings/ """ -import environ import os from pathlib import Path +import environ # Build paths inside the project like this: BASE_DIR / 'subdir'. @@ -26,7 +26,9 @@ SECRET_KEY=(str, "django-insecure-vri27@j_q62e2it4$xiy9ca!7@qgjkhhan(*zs&lz0k@yukbb3"), OAUTH2_PROVIDER_OIDC_ENABLED=(bool, True), OAUTH2_PROVIDER_OIDC_RP_INITIATED_LOGOUT_ENABLED=(bool, True), - OAUTH2_PROVIDER_OIDC_RSA_PRIVATE_KEY=(str, """ + OAUTH2_PROVIDER_OIDC_RSA_PRIVATE_KEY=( + str, + """ -----BEGIN RSA PRIVATE KEY----- MIIJKAIBAAKCAgEAtd8X/v8pddKt+opMJZrhV4FH86gBTMPjTGXeAfKkQVf7KDUZ Ty90n+JMe2rvCUn+Nws9yy5vmtbkomQbj8Xs1kHJOVdCnH1L2HTkvM7BjTBmJ5vc @@ -78,26 +80,26 @@ dBCCnF8FP1yPW8UgGVGSeozmIMaJwSpl2srZUMkN1KlqHwzehrOn9Tn2grA9ue/i ipUMvb4Se0LDJnmFuv8v6gM6V4vyXkP855mNOiRHUOHOSKdQ3SeKrLlnR6I= -----END RSA PRIVATE KEY----- -"""), - OAUTH2_PROVIDER_SCOPES=(dict, {"openid": "OpenID Connect scope" }), - OAUTH2_PROVIDER_ALLOWED_SCHEMES=(list, ["https", "http"]), - OAUTHLIB_INSECURE_TRANSPORT=(bool, "1"), - STATIC_ROOT=(str, BASE_DIR / "static"), - STATIC_URL=(str, "static/"), - TEMPLATES_DIRS=(list, [BASE_DIR / "templates"]), - +""", + ), + OAUTH2_PROVIDER_SCOPES=(dict, {"openid": "OpenID Connect scope"}), + OAUTH2_PROVIDER_ALLOWED_SCHEMES=(list, ["https", "http"]), + OAUTHLIB_INSECURE_TRANSPORT=(bool, "1"), + STATIC_ROOT=(str, BASE_DIR / "static"), + STATIC_URL=(str, "static/"), + TEMPLATES_DIRS=(list, [BASE_DIR / "templates"]), ) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = env('SECRET_KEY') +SECRET_KEY = env("SECRET_KEY") # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = env('DEBUG') +DEBUG = env("DEBUG") -ALLOWED_HOSTS = env('ALLOWED_HOSTS') +ALLOWED_HOSTS = env("ALLOWED_HOSTS") # Application definition