()
| 19 | @pytest.mark.asyncio |
| 20 | @pytest.mark.flaky(reruns=3, reruns_delay=2) |
| 21 | async def test_bearer_auth(): |
| 22 | resp = await client.get( |
| 23 | "https://httpbin.org/anything", |
| 24 | bearer_auth="token", |
| 25 | ) |
| 26 | json = await resp.json() |
| 27 | authorization = json["headers"]["Authorization"] |
| 28 | assert authorization == "Bearer token" |
| 29 | |
| 30 | |
| 31 | @pytest.mark.asyncio |