Skip to content

Commit

Permalink
mock get_key
Browse files Browse the repository at this point in the history
  • Loading branch information
kipparker committed Apr 17, 2024
1 parent 43373f8 commit aa32991
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion authentication/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ def test_authorization_code(mock_get_request):
assert "Location" in response.headers


@patch("api.auth.get_key")
@responses.activate
def test_token():
def test_token(mocked_auth_key):
test_key = f"{ROOT_DIR}/fixtures/server-signing-private-key.pem"
mocked_auth_key.return_value = test_key
client_id = "aaaa-1111-2222"
valid_response = {
"aud": [],
Expand Down

0 comments on commit aa32991

Please sign in to comment.