-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: no OIDC test outside the OIDC zone
- Loading branch information
Showing
1 changed file
with
0 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"] = "[email protected]" | ||
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 == "[email protected]" | ||
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"] == "[email protected]" | ||
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"] | ||
|
||
|
||
|