From dd7768e0d2734eaf2afb2e0503184a7baf5a87f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Fri, 29 Mar 2024 17:34:08 +0100 Subject: [PATCH] tests: no OIDC test outside the OIDC zone --- tests/app/test_configuration.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/app/test_configuration.py b/tests/app/test_configuration.py index fa3a6253..d2af2e97 100644 --- a/tests/app/test_configuration.py +++ b/tests/app/test_configuration.py @@ -43,24 +43,20 @@ def test_configuration_nestedsecrets_directory(tmp_path, backend, configuration) def test_configuration_from_environment_vars(): os.environ["SECRET_KEY"] = "very-very-secret" os.environ["CANAILLE__SMTP__FROM_ADDR"] = "user@mydomain.tld" - os.environ["CANAILLE_OIDC__REQUIRE_NONCE"] = "false" os.environ["CANAILLE_SQL__DATABASE_URI"] = "sqlite:///anything.db" conf = settings_factory({"TIMEZONE": "UTC"}) assert conf.SECRET_KEY == "very-very-secret" assert conf.CANAILLE.SMTP.FROM_ADDR == "user@mydomain.tld" - assert conf.CANAILLE_OIDC.REQUIRE_NONCE is False assert conf.CANAILLE_SQL.DATABASE_URI == "sqlite:///anything.db" app = create_app({"TIMEZONE": "UTC"}) assert app.config["SECRET_KEY"] == "very-very-secret" assert app.config["CANAILLE"]["SMTP"]["FROM_ADDR"] == "user@mydomain.tld" - assert app.config["CANAILLE_OIDC"]["REQUIRE_NONCE"] is False assert app.config["CANAILLE_SQL"]["DATABASE_URI"] == "sqlite:///anything.db" del os.environ["SECRET_KEY"] del os.environ["CANAILLE__SMTP__FROM_ADDR"] - del os.environ["CANAILLE_OIDC__REQUIRE_NONCE"] del os.environ["CANAILLE_SQL__DATABASE_URI"]