Skip to content

Commit 5485a05

Browse files
committed
nixos-rebuild-ng: add missing autospec
1 parent d6e849e commit 5485a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/by-name/ni/nixos-rebuild-ng/src/tests/test_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def test_remote_from_name(monkeypatch: MonkeyPatch) -> None:
105105

106106
# get_qualified_name doesn't work because getpass is aliased to another
107107
# function
108-
with patch(f"{p.__name__}.getpass", return_value="password"):
108+
with patch(f"{p.__name__}.getpass", autospec=True, return_value="password"):
109109
monkeypatch.setenv("NIX_SSHOPTS", "-f foo -b bar -t")
110110
assert m.Remote.from_arg("user@localhost", True, True) == m.Remote(
111111
"user@localhost",

0 commit comments

Comments
 (0)