()
| 7 | @pytest.mark.asyncio |
| 8 | @pytest.mark.flaky(reruns=3, reruns_delay=2) |
| 9 | async def test_auth(): |
| 10 | resp = await client.get( |
| 11 | "https://httpbin.org/anything", |
| 12 | auth="token", |
| 13 | ) |
| 14 | json = await resp.json() |
| 15 | authorization = json["headers"]["Authorization"] |
| 16 | assert authorization == "token" |
| 17 | |
| 18 | |
| 19 | @pytest.mark.asyncio |