def cli(loop, test_client): app = make_app(loop=loop) return loop.run_until_complete(test_client(app))
from aiohttp import web from bark_spider.app import make_app web.run_app(make_app())
async def test_get_root(test_client, loop): app = make_app(loop=loop) client = await test_client(app) resp = await client.get('/') assert resp.status == 200