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

Function test_start_twice

tests/test_web_response.py:575–582  ·  view source on GitHub ↗
(warning)

Source from the content-addressed store, hash-verified

573
574
575def test_start_twice(warning):
576 req = make_request('GET', '/')
577 resp = StreamResponse()
578
579 with warning(DeprecationWarning):
580 impl1 = resp.start(req)
581 impl2 = resp.start(req)
582 assert impl1 is impl2
583
584
585@pytest.mark.run_loop

Callers

nothing calls this directly

Calls 4

startMethod · 0.95
StreamResponseClass · 0.90
warningFunction · 0.85
make_requestFunction · 0.70

Tested by

no test coverage detected