MCPcopy
hub / github.com/aio-libs/aiohttp / test_chunked_encoding

Function test_chunked_encoding

tests/test_web_response.py:180–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178
179@pytest.mark.run_loop
180def test_chunked_encoding():
181 req = make_request('GET', '/')
182 resp = StreamResponse()
183 assert not resp.chunked
184
185 resp.enable_chunked_encoding()
186 assert resp.chunked
187
188 with mock.patch('aiohttp.web_reqrep.ResponseImpl'):
189 msg = yield from resp.prepare(req)
190 assert msg.chunked
191
192
193@pytest.mark.run_loop

Callers

nothing calls this directly

Calls 5

prepareMethod · 0.95
StreamResponseClass · 0.90
patchMethod · 0.80
make_requestFunction · 0.70

Tested by

no test coverage detected