mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-10 06:42:34 +00:00
Parametrize password actions
This commit is contained in:
1 parent
7af92195c4
commit
8bd9a75629
11 files changed
+64
-46
No files matched your search
@@ -291,8 +291,8 @@ def test_vault_lock_endpoint(client):
|
||||
assert res.json() == {"status": "locked"}
|
||||
assert called.get("locked") is True
|
||||
assert api._pm.locked is True
|
||||
api._pm.unlock_vault = lambda: setattr(api._pm, "locked", False)
|
||||
api._pm.unlock_vault()
|
||||
api._pm.unlock_vault = lambda pw: setattr(api._pm, "locked", False)
|
||||
api._pm.unlock_vault("pw")
|
||||
assert api._pm.locked is False
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user