mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 05:29:38 -04:00
Removed unused requirements and modules.
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
from app.main.encryption import hashpw, check_hash
|
||||
|
||||
|
||||
def test_should_hash_password():
|
||||
password = 'passwordToHash'
|
||||
assert password != hashpw(password)
|
||||
|
||||
|
||||
def test_should_check_password():
|
||||
value = 's3curePassword!'
|
||||
encrypted = hashpw(value)
|
||||
assert check_hash(value, encrypted) is True
|
||||
|
||||
|
||||
def test_checkpw_should_fail_when_pw_does_not_match():
|
||||
value = hashpw('somePassword')
|
||||
assert check_hash('somethingDifferent', value) is False
|
||||
Reference in New Issue
Block a user