summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_app_htpasswd.py2
-rw-r--r--tests/test_validators_auth.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_app_htpasswd.py b/tests/test_app_htpasswd.py
index 71d34fff..a7fe7395 100644
--- a/tests/test_app_htpasswd.py
+++ b/tests/test_app_htpasswd.py
@@ -59,7 +59,7 @@ def _run_main(htpasswd: passlib.apache.HtpasswdFile, cmd: List[str]) -> None:
"kvmd-htpasswd",
*cmd,
"--set-options",
- "kvmd/auth/basic/htpasswd=" + htpasswd.path,
+ "kvmd/auth/htpasswd/file=" + htpasswd.path,
])
diff --git a/tests/test_validators_auth.py b/tests/test_validators_auth.py
index fd13a450..0fae541c 100644
--- a/tests/test_validators_auth.py
+++ b/tests/test_validators_auth.py
@@ -108,7 +108,7 @@ def test_fail__valid_auth_token(arg: Any) -> None:
print(valid_auth_token(arg))
[email protected]("arg", ["BASIC ", "basic"])
[email protected]("arg", ["HTPASSWD ", "htpasswd"])
def test_ok__valid_auth_type(arg: Any) -> None:
assert valid_auth_type(arg) == arg.strip().lower()