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

Method make_request

tests/test_urldispatch.py:35–45  ·  view source on GitHub ↗
(self, method, path)

Source from the content-addressed store, hash-verified

33 self.loop.close()
34
35 def make_request(self, method, path):
36 self.app = mock.Mock()
37 message = RawRequestMessage(method, path, HttpVersion(1, 1),
38 CIMultiDict(), [], False, False)
39 self.payload = mock.Mock()
40 self.transport = mock.Mock()
41 self.reader = mock.Mock()
42 self.writer = mock.Mock()
43 req = Request(self.app, message, self.payload,
44 self.transport, self.reader, self.writer)
45 return req
46
47 def make_handler(self):
48

Calls 1

RequestClass · 0.90

Tested by

no test coverage detected