diff --git a/tests/pytest/oauth/test_views.py b/tests/pytest/oauth/test_views.py index 3c322ff71d..41f6d17d39 100644 --- a/tests/pytest/oauth/test_views.py +++ b/tests/pytest/oauth/test_views.py @@ -85,7 +85,7 @@ def test_authorize_fail(mocked_oauth_create_client, app_request): @pytest.mark.usefixtures("mocked_session_verifier_auth_required") def test_authorize_success(mocked_oauth_create_client, mocked_analytics_module, app_request): mocked_oauth_client = mocked_oauth_create_client.return_value - mocked_oauth_client.authorize_access_token.return_value = {"id_token": "token"} + mocked_oauth_client.authorize_access_token.return_value = {"id_token": "token", "userinfo": {"iss": "authority"}} result = authorize(app_request)