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

Function test_render_ok

tests/test_classbasedview.py:15–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15async def test_render_ok() -> None:
16 resp = web.Response(text="OK")
17
18 class MyView(View):
19 async def get(self):
20 return resp
21
22 request = mock.Mock()
23 request.method = "GET"
24 resp2 = await MyView(request)
25 assert resp is resp2
26
27
28async def test_render_unknown_method() -> None:

Callers

nothing calls this directly

Calls 1

MyViewClass · 0.70

Tested by

no test coverage detected