diff options
Diffstat (limited to 'tests/auth/test_service_htpasswd.py')
-rw-r--r-- | tests/auth/test_service_htpasswd.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auth/test_service_htpasswd.py b/tests/auth/test_service_htpasswd.py index 9a24378e..6378d896 100644 --- a/tests/auth/test_service_htpasswd.py +++ b/tests/auth/test_service_htpasswd.py @@ -35,12 +35,14 @@ async def test_ok__htpasswd_service(tmpdir) -> None: # type: ignore path = os.path.abspath(str(tmpdir.join("htpasswd"))) htpasswd = passlib.apache.HtpasswdFile(path, new=True) - htpasswd.set_password("admin", "foo") + htpasswd.set_password("admin", "pass") htpasswd.save() async with get_configured_auth_service("htpasswd", file=path) as service: - assert (await service.login("admin", "foo")) assert not (await service.login("user", "foo")) + assert not (await service.login("admin", "foo")) + assert not (await service.login("user", "pass")) + assert (await service.login("admin", "pass")) htpasswd.set_password("admin", "bar") htpasswd.set_password("user", "bar") |