示例#1
0
def cli(loop, test_client):
    app = make_app(loop=loop)
    return loop.run_until_complete(test_client(app))
示例#2
0
from aiohttp import web
from bark_spider.app import make_app

web.run_app(make_app())
示例#3
0
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