(make_request)
| 445 | |
| 446 | |
| 447 | def test_basic_auth_utf8(make_request) -> None: |
| 448 | with pytest.warns(DeprecationWarning, match="BasicAuth is deprecated"): |
| 449 | auth = aiohttp.BasicAuth("nkim", "секрет", "utf-8") |
| 450 | req = make_request("get", "http://python.org", auth=auth) |
| 451 | assert "AUTHORIZATION" in req.headers |
| 452 | assert "Basic bmtpbTrRgdC10LrRgNC10YI=" == req.headers["AUTHORIZATION"] |
| 453 | |
| 454 | |
| 455 | def test_basic_auth_tuple_forbidden(make_request) -> None: |
nothing calls this directly
no test coverage detected