Skip to content

Commit

Permalink
feat(oauth): update tests for authorize view
Browse files Browse the repository at this point in the history
  • Loading branch information
lalver1 committed May 29, 2024
1 parent b890beb commit 36ca2eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/pytest/oauth/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 36ca2eb

Please sign in to comment.