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

Function test_basic_auth

tests/auth_test.py:33–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31@pytest.mark.asyncio
32@pytest.mark.flaky(reruns=3, reruns_delay=2)
33async def test_basic_auth():
34 resp = await client.get(
35 "https://httpbin.org/anything",
36 basic_auth=("user", "pass"),
37 )
38 json = await resp.json()
39 authorization = json["headers"]["Authorization"]
40 assert authorization == "Basic dXNlcjpwYXNz"

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected