diff --git a/tests/test_key_resolver.py b/tests/test_key_resolver.py index 144c8df..9958337 100644 --- a/tests/test_key_resolver.py +++ b/tests/test_key_resolver.py @@ -43,6 +43,9 @@ def test_url_key_resolver(httpx_mock: HTTPXMock): res = resolver.resolve_public_key(key_id) assert res == public_key + request = httpx_mock.get_request() + assert request.headers["Accept"] == "application/x-pem-file" + with pytest.raises(KeyError): _ = resolver.resolve_public_key("unknown") @@ -61,6 +64,9 @@ def test_url_key_resolver_pattern(httpx_mock: HTTPXMock): res = resolver.resolve_public_key(key_id) assert res == public_key + request = httpx_mock.get_request() + assert request.headers["Accept"] == "application/x-pem-file" + with pytest.raises(KeyError): _ = resolver.resolve_public_key("unknown")