From 56fb83d44d22d683222ab075e63e86a3e71b97f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Sun, 4 Dec 2022 13:43:29 +0100 Subject: [PATCH] unit tests: increased well-known coverage --- tests/oidc/test_well_known.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/oidc/test_well_known.py b/tests/oidc/test_well_known.py index cb8595cc..cbc1b511 100644 --- a/tests/oidc/test_well_known.py +++ b/tests/oidc/test_well_known.py @@ -6,8 +6,16 @@ def test_oauth_authorization_server(testclient): assert "https://auth.mydomain.tld" == res["issuer"] assert res["ui_locales_supported"] == g.available_language_codes + res = testclient.get("/.well-known/oauth-authorization-server", status=200).json + assert "https://auth.mydomain.tld" == res["issuer"] + assert res["ui_locales_supported"] == g.available_language_codes + def test_openid_configuration(testclient): res = testclient.get("/.well-known/openid-configuration", status=200).json assert "https://auth.mydomain.tld" == res["issuer"] assert res["ui_locales_supported"] == g.available_language_codes + + res = testclient.get("/.well-known/openid-configuration", status=200).json + assert "https://auth.mydomain.tld" == res["issuer"] + assert res["ui_locales_supported"] == g.available_language_codes