summaryrefslogtreecommitdiff
path: root/testenv
diff options
context:
space:
mode:
Diffstat (limited to 'testenv')
-rw-r--r--testenv/tests/plugins/auth/test_http.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/testenv/tests/plugins/auth/test_http.py b/testenv/tests/plugins/auth/test_http.py
index 07b41374..252ad85b 100644
--- a/testenv/tests/plugins/auth/test_http.py
+++ b/testenv/tests/plugins/auth/test_http.py
@@ -32,10 +32,10 @@ from . import get_configured_auth_service
# =====
-async def _handle_auth(request: aiohttp.web.BaseRequest) -> aiohttp.web.Response:
+async def _handle_auth(req: aiohttp.web.BaseRequest) -> aiohttp.web.Response:
status = 400
- if request.method == "POST":
- credentials = (await request.json())
+ if req.method == "POST":
+ credentials = (await req.json())
if credentials["user"] == "admin" and credentials["passwd"] == "pass":
status = 200
return aiohttp.web.Response(text=str(status), status=status)