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

Function test_auth

tests/auth_test.py:9–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7@pytest.mark.asyncio
8@pytest.mark.flaky(reruns=3, reruns_delay=2)
9async def test_auth():
10 resp = await client.get(
11 "https://httpbin.org/anything",
12 auth="token",
13 )
14 json = await resp.json()
15 authorization = json["headers"]["Authorization"]
16 assert authorization == "token"
17
18
19@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected