chore: prepare release v0.4.0
This commit is contained in:
@@ -34,8 +34,10 @@ class TestVerify:
|
||||
assert verify_password("nope", encoded) is False
|
||||
|
||||
def test_verify_empty_string(self) -> None:
|
||||
encoded = hash_password("")
|
||||
assert verify_password("", encoded) is True
|
||||
# ``hash_password`` rejects empty input; verify_password with an
|
||||
# empty candidate returns False for any well-formed hash.
|
||||
encoded = hash_password("some-pw")
|
||||
assert verify_password("", encoded) is False
|
||||
|
||||
def test_verify_malformed_input(self) -> None:
|
||||
assert verify_password("x", "not-a-hash") is False
|
||||
|
||||
Reference in New Issue
Block a user