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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user