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 <henning@hennsch.de>
This commit is contained in:
Henning Schild
2026-04-14 18:18:16 +02:00
parent 80b0aaf24f
commit 7b5c0304bb

View File

@@ -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: