From 7b5c0304bb16e69074a845748a6a8e24bc31666f Mon Sep 17 00:00:00 2001 From: Henning Schild Date: Tue, 14 Apr 2026 18:18:16 +0200 Subject: [PATCH] radicale/tests: use BCRYPT_MAX_PWLEN from auth.htpasswd Do not define the magic value twice, instead reuse the value from the auth code also in the related tests. Signed-off-by: Henning Schild --- radicale/tests/test_auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/tests/test_auth.py b/radicale/tests/test_auth.py index 7385edbc..e7c8409d 100644 --- a/radicale/tests/test_auth.py +++ b/radicale/tests/test_auth.py @@ -32,6 +32,7 @@ from typing import Iterable, Tuple, Union import pytest from radicale import utils, xmlutils +from radicale.auth import htpasswd from radicale.tests import BaseTest @@ -42,7 +43,7 @@ class TestBaseAuthRequests(BaseTest): """ - BCRYPT_MAX_PWLEN = 72 + BCRYPT_MAX_PWLEN = htpasswd.Auth.BCRYPT_MAX_PWLEN # test for available bcrypt module try: