MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / protocol

Function protocol

tests/test_client_request.py:92–99  ·  view source on GitHub ↗
(loop, transport)

Source from the content-addressed store, hash-verified

90
91@pytest.fixture
92def protocol(loop, transport):
93 protocol = mock.Mock()
94 protocol.transport = transport
95 protocol._drain_helper.return_value = loop.create_future()
96 protocol._drain_helper.return_value.set_result(None)
97 protocol.closed = loop.create_future()
98 protocol.closed.set_result(None)
99 return protocol
100
101
102@pytest.fixture

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected