Given the aiohttp.web application with views like this:
async def hello(request):
return web.Response(body=b"Hello, world")
I am trying to figure out how to test them correctly.
I usually use Django as my own test client when writing Django applications and looked for something similar for aiohttp.web. I am not sure if this is the right approach or not.
TL DR: How to simulate a request in an application aiohttp.webin unittest?
source
share