MCPcopy Create free account
hub / github.com/authlib/authlib / assert_headers

Function assert_headers

tests/clients/test_starlette/test_oauth_client.py:369–370  ·  view source on GitHub ↗
(req)

Source from the content-addressed store, hash-verified

367@pytest.mark.asyncio
368async def test_oauth2_fetch_metadata():
369 def assert_headers(req):
370 assert "Authlib/" in req.headers.get("user-agent", "")
371
372 oauth = OAuth()
373 transport = ASGITransport(

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected