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

Function test_prepare_calls_signal

tests/test_web_response.py:586–595  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

584
585@pytest.mark.run_loop
586def test_prepare_calls_signal():
587 app = mock.Mock()
588 req = make_request('GET', '/', app=app)
589 resp = StreamResponse()
590
591 sig = mock.Mock()
592 app.on_response_prepare.append(sig)
593 yield from resp.prepare(req)
594
595 sig.assert_called_with(req, resp)
596
597
598def test_default_nodelay():

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected