Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed Nov 5, 2024
1 parent a781c05 commit 93de509
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PyFunceble/helpers/hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions tests/helpers/test_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 93de509

Please sign in to comment.