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

Function test_send_headers

tests/request_test.py:21–30  ·  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_send_headers():
22 url = "https://httpbin.org/headers"
23 headers = {"foo": "bar"}
24 response = await client.get(url, headers=headers)
25 json = await response.json()
26 assert json["headers"]["Foo"] == "bar"
27
28 response = await client.get(url, headers=HeaderMap(headers))
29 json = await response.json()
30 assert json["headers"]["Foo"] == "bar"
31
32
33@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 3

HeaderMapClass · 0.85
getMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected