Commit f74be1f3 authored by xa's avatar xa

modern async/await tests

parent cc7c719a
......@@ -27,7 +27,6 @@ async def create_server(event_loop):
async def test_ping(event_loop):
app, srv, base, handler = await create_server(event_loop)
response = await aiohttp.get(base + '/ping')
result = await response.text()
assert response.status == 200
assert result == 'OK'
......@@ -49,7 +48,6 @@ async def test_auth_ok(event_loop):
app, srv, base, handler = await create_server(event_loop)
url = base + '/auth?secret=allow&remote_ip=.&tls=false'
response = await aiohttp.get(url)
await handler.finish_connections()
assert response.status == 200
result = await response.json()
......@@ -67,7 +65,6 @@ async def test_auth_allow(event_loop):
app, srv, base, handler = await create_server(event_loop)
url = base + '/auth?secret=allow&remote_ip=.&tls=false'
response = await aiohttp.get(url)
await handler.finish_connections()
assert response.status == 200
result = await response.json()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment