test: patch configure getpass correctly
This commit is contained in:
@@ -13,7 +13,7 @@ def user_input(monkeypatch) -> Callable[[Iterable[str], Iterable[str]], None]:
|
||||
password_iter = iter(passwords)
|
||||
|
||||
monkeypatch.setattr("builtins.input", lambda _prompt: next(input_iter))
|
||||
monkeypatch.setattr("getpass.getpass",
|
||||
monkeypatch.setattr("skywipe.configure.getpass",
|
||||
lambda _prompt: next(password_iter))
|
||||
|
||||
return _set
|
||||
|
||||
Reference in New Issue
Block a user