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

Method prepare

tests/test_multipart.py:177–180  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

175 stream = Stream(b'')
176
177 def prepare(data):
178 f = asyncio.Future(loop=self.loop)
179 f.set_result(data)
180 return f
181
182 with mock.patch.object(stream, 'read', side_effect=[
183 prepare(b'Hello, '),

Callers 8

test_render_with_bodyFunction · 0.45
test_response_prepareFunction · 0.45
test_HTTPOkFunction · 0.45
test_HTTPFoundFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected