From 4b49910dfc4ad3faf904d8a3ffd55727555da289 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Sun, 29 Mar 2026 14:42:08 +0200 Subject: [PATCH] test/auth: add support for optional delay --- radicale/tests/test_auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/tests/test_auth.py b/radicale/tests/test_auth.py index b66f3ef4..223a76d2 100644 --- a/radicale/tests/test_auth.py +++ b/radicale/tests/test_auth.py @@ -60,7 +60,7 @@ class TestBaseAuthRequests(BaseTest): def _test_htpasswd(self, htpasswd_encryption: str, htpasswd_content: str, test_matrix: Union[str, Iterable[Tuple[str, str, bool]]] - = "ascii") -> None: + = "ascii", delay: int = 0) -> None: """Test htpasswd authentication with user "tmp" and password "bepo" for ``test_matrix`` "ascii" or user "😀" and password "🔑" for ``test_matrix`` "unicode".""" @@ -69,7 +69,7 @@ class TestBaseAuthRequests(BaseTest): with open(htpasswd_file_path, "w", encoding=encoding) as f: f.write(htpasswd_content) self.configure({"auth": {"type": "htpasswd", - "delay": 0, + "delay": delay, "htpasswd_filename": htpasswd_file_path, "htpasswd_encryption": htpasswd_encryption}, "server": {"delay_on_error": 0}})