This commit is contained in:
Jonathan Wren 2022-05-18 12:18:24 -07:00
parent fabcd53c6f
commit 32ab358bc2
2 changed files with 29 additions and 0 deletions

View file

@ -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}