diff --git a/PyFunceble/helpers/hash.py b/PyFunceble/helpers/hash.py index 24c2f602..722f3013 100644 --- a/PyFunceble/helpers/hash.py +++ b/PyFunceble/helpers/hash.py @@ -66,7 +66,7 @@ class HashHelper: :raise ValueError: When the given algo is not known. """ - _algo: str = "SHA512_224" + _algo: str = "sha512_224" def __init__(self, algo: Optional[str] = None): if algo is not None: diff --git a/tests/helpers/test_hash.py b/tests/helpers/test_hash.py index 7d00fc3f..c344bc4c 100644 --- a/tests/helpers/test_hash.py +++ b/tests/helpers/test_hash.py @@ -91,7 +91,7 @@ def test_set_algo_return(self) -> None: work with. """ - given = "SHA512_224" + given = "sha512_224" hash_helper = HashHelper() actual = hash_helper.set_algo(given) @@ -103,8 +103,8 @@ def test_set_algo(self) -> None: Tests the method which let us set the algorithm to work with. """ - given = "SHA512_224" - expected = "SHA512_224" + given = "sha512_224" + expected = "sha512_224" hash_helper = HashHelper() hash_helper.set_algo(given)