(loop, conn)
| 907 | |
| 908 | @pytest.mark.usefixtures("parametrize_zlib_backend") |
| 909 | async def test_content_encoding_header(loop, conn) -> None: |
| 910 | req = ClientRequest( |
| 911 | "post", |
| 912 | URL("http://python.org/"), |
| 913 | data="foo", |
| 914 | headers={"Content-Encoding": "deflate"}, |
| 915 | loop=loop, |
| 916 | ) |
| 917 | with mock.patch("aiohttp.client_reqrep.StreamWriter") as m_writer: |
| 918 | m_writer.return_value.write_headers = mock.AsyncMock() |
| 919 | resp = await req.send(conn) |
| 920 | |
| 921 | assert not m_writer.return_value.enable_compression.called |
| 922 | assert not m_writer.return_value.enable_chunking.called |
| 923 | await req.close() |
| 924 | resp.close() |
| 925 | |
| 926 | |
| 927 | async def test_compress_and_content_encoding(loop, conn) -> None: |
nothing calls this directly
no test coverage detected