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

Function test_send_json

tests/request_test.py:53–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51@pytest.mark.asyncio
52@pytest.mark.flaky(reruns=3, reruns_delay=2)
53async def test_send_json():
54 url = "https://httpbin.org/post"
55 response = await client.post(url, json={"foo": "bar"})
56 json = await response.json()
57 assert json["json"] == {"foo": "bar"}
58
59
60@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

postMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected