Parametrize password actions

This commit is contained in:
thePR0M3TH3AN committed 2025-07-17 19:38:28 -04:00
1 parent 7af92195c4
commit 8bd9a75629
11 files changed
+64 -46

No files matched your search

+2 -2
View File
@@ -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