diff options
author | Maxim Devaev <[email protected]> | 2022-07-16 22:30:31 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-07-16 22:32:19 +0300 |
commit | ac06ef62fc0b911ae7d1434ef0def9a74f7d1581 (patch) | |
tree | 8266c7c631da136c82e33c185e0cd5595e02e46d /testenv/tests/plugins/auth/test_pam.py | |
parent | 3df9cb698251ab7c1430a9b7141d9538b3d65b04 (diff) |
fixed tests
Diffstat (limited to 'testenv/tests/plugins/auth/test_pam.py')
-rw-r--r-- | testenv/tests/plugins/auth/test_pam.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testenv/tests/plugins/auth/test_pam.py b/testenv/tests/plugins/auth/test_pam.py index 84dcdff0..ea524cb4 100644 --- a/testenv/tests/plugins/auth/test_pam.py +++ b/testenv/tests/plugins/auth/test_pam.py @@ -29,6 +29,7 @@ from typing import AsyncGenerator from typing import Optional import pytest +import pytest_asyncio from . import get_configured_auth_service @@ -50,7 +51,7 @@ async def _run_process(cmd: str, input: Optional[str]=None) -> None: # pylint: assert proc.returncode == 0 [email protected](name="test_user") +@pytest_asyncio.fixture(name="test_user") async def _test_user() -> AsyncGenerator[None, None]: with pytest.raises(KeyError): pwd.getpwnam(_USER) |