summaryrefslogtreecommitdiff
path: root/testenv/tests/plugins/auth/test_pam.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-02-07 23:31:30 +0300
committerDevaev Maxim <[email protected]>2020-02-07 23:31:30 +0300
commit301e58148e5b2140e2a9e96dbaa04b27d6bd8b6e (patch)
tree86a51c6fe0073183b9ccca5b16094a602750e3d5 /testenv/tests/plugins/auth/test_pam.py
parent5b2eb6892fc8a1e21b69a68f650161f67c83798e (diff)
lint fix
Diffstat (limited to 'testenv/tests/plugins/auth/test_pam.py')
-rw-r--r--testenv/tests/plugins/auth/test_pam.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/testenv/tests/plugins/auth/test_pam.py b/testenv/tests/plugins/auth/test_pam.py
index e4171d35..5e69f305 100644
--- a/testenv/tests/plugins/auth/test_pam.py
+++ b/testenv/tests/plugins/auth/test_pam.py
@@ -75,6 +75,7 @@ async def _test_user() -> AsyncGenerator[None, None]:
{"allow_uids_at": _UID},
])
async def test_ok(test_user, kwargs: Dict) -> None: # type: ignore
+ _ = test_user
async with get_configured_auth_service("pam", **kwargs) as service:
assert not (await service.authorize(_USER, "invalid_password"))
assert (await service.authorize(_USER, _PASSWD))
@@ -87,6 +88,7 @@ async def test_ok(test_user, kwargs: Dict) -> None: # type: ignore
{"allow_uids_at": _UID + 1},
])
async def test_fail(test_user, kwargs: Dict) -> None: # type: ignore
+ _ = test_user
async with get_configured_auth_service("pam", **kwargs) as service:
assert not (await service.authorize(_USER, "invalid_password"))
assert not (await service.authorize(_USER, _PASSWD))