()
| 51 | @pytest.mark.asyncio |
| 52 | @pytest.mark.flaky(reruns=3, reruns_delay=2) |
| 53 | async 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 |