fix test for pyjwt upgrade

This commit is contained in:
Kenneth Kehl
2026-03-17 08:03:37 -07:00
parent d033af8f76
commit 773460dcaf

View File

@@ -242,12 +242,11 @@ def test_decode_jwt_token_returns_error_with_no_secrets(client):
def test_requires_auth_should_not_allow_service_id_with_the_wrong_data_type( def test_requires_auth_should_not_allow_service_id_with_the_wrong_data_type(
client, service_jwt_secret, service_id client, service_jwt_secret, service_id
): ):
with pytest.raises(TypeError) as exc: create_jwt_token(
create_jwt_token( client_id=service_id,
client_id=service_id, secret=service_jwt_secret,
secret=service_jwt_secret, )
) assert 1 == 0
assert exc.value.short_message == "Foo"
# request.headers = {"Authorization": "Bearer {}".format(token)} # request.headers = {"Authorization": "Bearer {}".format(token)}
# with pytest.raises(AuthError) as exc: # with pytest.raises(AuthError) as exc: