chore: initial commit with existing codebase
This commit is contained in:
11
tests/test_cli.py
Normal file
11
tests/test_cli.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from salt import hash_password, main
|
||||
|
||||
|
||||
def test_main_supports_hash_shortcut() -> None:
|
||||
assert main(["secret"]) == 0
|
||||
|
||||
|
||||
def test_main_verify_round_trip() -> None:
|
||||
salt, hashed = hash_password("secret-value")
|
||||
assert main(["verify", "secret-value", salt, hashed]) == 0
|
||||
assert main(["verify", "wrong", salt, hashed]) == 1
|
||||
Reference in New Issue
Block a user