()
| 31 | @pytest.mark.asyncio |
| 32 | @pytest.mark.flaky(reruns=3, reruns_delay=2) |
| 33 | async def test_basic_auth(): |
| 34 | resp = await client.get( |
| 35 | "https://httpbin.org/anything", |
| 36 | basic_auth=("user", "pass"), |
| 37 | ) |
| 38 | json = await resp.json() |
| 39 | authorization = json["headers"]["Authorization"] |
| 40 | assert authorization == "Basic dXNlcjpwYXNz" |