test: patch configure getpass correctly

This commit is contained in:
2026-01-08 06:51:46 +01:00
parent a07cc02fb0
commit c718e8c6f5

View File

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