(aiohttp_client)
| 2420 | |
| 2421 | @pytest.mark.usefixtures("parametrize_zlib_backend") |
| 2422 | async def test_encoding_gzip(aiohttp_client) -> None: |
| 2423 | async def handler(request): |
| 2424 | resp = web.Response(text="text") |
| 2425 | resp.enable_chunked_encoding() |
| 2426 | resp.enable_compression(web.ContentCoding.gzip) |
| 2427 | return resp |
| 2428 | |
| 2429 | app = web.Application() |
| 2430 | app.router.add_get("/", handler) |
| 2431 | client = await aiohttp_client(app) |
| 2432 | |
| 2433 | resp = await client.get("/") |
| 2434 | assert 200 == resp.status |
| 2435 | txt = await resp.text() |
| 2436 | assert txt == "text" |
| 2437 | resp.close() |
| 2438 | |
| 2439 | |
| 2440 | @pytest.mark.usefixtures("parametrize_zlib_backend") |
nothing calls this directly
no test coverage detected
searching dependent graphs…