mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-04 07:26:14 +02:00
WIP
This commit is contained in:
parent
fabcd53c6f
commit
32ab358bc2
2 changed files with 29 additions and 0 deletions
|
@ -195,6 +195,8 @@ def mock_password(request):
|
|||
if not password:
|
||||
password = Exception("Unexpected call for password")
|
||||
|
||||
# @todo replace with with rich.console.Console().input(password=True)
|
||||
# since getpass is no longer used
|
||||
return patch("getpass.getpass", side_effect=password)
|
||||
|
||||
return {"getpass": _mock_password}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue