Skip to content

Commit 432e06e

Browse files
committed
Fix tests.
1 parent 844ef3c commit 432e06e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

PyFunceble/helpers/hash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class HashHelper:
6666
:raise ValueError: When the given algo is not known.
6767
"""
6868

69-
_algo: str = "SHA512_224"
69+
_algo: str = "sha512_224"
7070

7171
def __init__(self, algo: Optional[str] = None):
7272
if algo is not None:

tests/helpers/test_hash.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_set_algo_return(self) -> None:
9191
work with.
9292
"""
9393

94-
given = "SHA512_224"
94+
given = "sha512_224"
9595

9696
hash_helper = HashHelper()
9797
actual = hash_helper.set_algo(given)
@@ -103,8 +103,8 @@ def test_set_algo(self) -> None:
103103
Tests the method which let us set the algorithm to work with.
104104
"""
105105

106-
given = "SHA512_224"
107-
expected = "SHA512_224"
106+
given = "sha512_224"
107+
expected = "sha512_224"
108108

109109
hash_helper = HashHelper()
110110
hash_helper.set_algo(given)

0 commit comments

Comments
 (0)