Commit b769893e authored by xa's avatar xa

fix flake8

parent f74be1f3
......@@ -25,8 +25,8 @@ async def create_server(event_loop):
@pytest.mark.asyncio
async def test_ping(event_loop):
app, srv, base, handler = await create_server(event_loop)
response = await aiohttp.get(base + '/ping')
app, srv, url, handler = await create_server(event_loop)
response = await aiohttp.get(url + '/ping')
result = await response.text()
assert response.status == 200
assert result == 'OK'
......@@ -35,9 +35,8 @@ async def test_ping(event_loop):
@pytest.mark.asyncio
async def test_auth_bad(event_loop):
app, srv, base, handler = await create_server(event_loop)
response = await aiohttp.get(base + '/auth?secret=allowed')
app, srv, url, handler = await create_server(event_loop)
response = await aiohttp.get(url + '/auth?secret=allowed')
assert response.status == 400
await response.read()
await handler.finish_connections()
......@@ -82,7 +81,6 @@ async def test_auth_forbidden(event_loop):
app, srv, base, handler = await create_server(event_loop)
url = base + '/auth?secret=deny&remote_ip=.&tls=false'
response = await aiohttp.get(url)
await handler.finish_connections()
assert response.status == 403
await response.text()
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