MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / test_bearer_auth

Function test_bearer_auth

tests/auth_test.py:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19@pytest.mark.asyncio
20@pytest.mark.flaky(reruns=3, reruns_delay=2)
21async def test_bearer_auth():
22 resp = await client.get(
23 "https://httpbin.org/anything",
24 bearer_auth="token",
25 )
26 json = await resp.json()
27 authorization = json["headers"]["Authorization"]
28 assert authorization == "Bearer token"
29
30
31@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected