summaryrefslogtreecommitdiff
path: root/testenv/tests/plugins/auth/test_http.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-07-16 22:30:31 +0300
committerMaxim Devaev <[email protected]>2022-07-16 22:32:19 +0300
commitac06ef62fc0b911ae7d1434ef0def9a74f7d1581 (patch)
tree8266c7c631da136c82e33c185e0cd5595e02e46d /testenv/tests/plugins/auth/test_http.py
parent3df9cb698251ab7c1430a9b7141d9538b3d65b04 (diff)
fixed tests
Diffstat (limited to 'testenv/tests/plugins/auth/test_http.py')
-rw-r--r--testenv/tests/plugins/auth/test_http.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testenv/tests/plugins/auth/test_http.py b/testenv/tests/plugins/auth/test_http.py
index 88718cf0..7a13f9b7 100644
--- a/testenv/tests/plugins/auth/test_http.py
+++ b/testenv/tests/plugins/auth/test_http.py
@@ -27,6 +27,7 @@ import aiohttp.web
import aiohttp_basicauth
import pytest
+import pytest_asyncio
from . import get_configured_auth_service
@@ -41,7 +42,7 @@ async def _handle_auth(request: aiohttp.web.BaseRequest) -> aiohttp.web.Response
return aiohttp.web.Response(text=str(status), status=status)
[email protected](name="auth_server_port")
+@pytest_asyncio.fixture(name="auth_server_port")
async def _auth_server_port_fixture(aiohttp_server) -> AsyncGenerator[int, None]: # type: ignore
auth = aiohttp_basicauth.BasicAuthMiddleware(
username="server-admin",