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

Function test_update_headers

tests/client_test.py:37–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35@pytest.mark.asyncio
36@pytest.mark.flaky(reruns=3, reruns_delay=2)
37async def test_update_headers():
38 client = rnet.Client()
39 headers = {"user-agent": "rnet"}
40 client.update(headers=headers)
41 assert client.headers["user-agent"] == b"rnet"
42
43 client.update(headers=HeaderMap(headers))
44 assert client.headers["user-agent"] == b"rnet"
45
46
47@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

updateMethod · 0.95
HeaderMapClass · 0.85

Tested by

no test coverage detected