Skip to content

Commit dcb8946

Browse files
committed
nixos-rebuild-ng: fix missing mock
1 parent 5e34add commit dcb8946

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,14 @@ def test_flake_from_arg(mock_node: Any, monkeypatch: MonkeyPatch, tmpdir: Path)
117117
autospec=True,
118118
return_value=False,
119119
),
120+
patch(
121+
get_qualified_name(m.discover_git, m),
122+
autospec=True,
123+
return_value="/etc/nixos",
124+
),
120125
):
121126
assert m.Flake.from_arg(None, None) == m.Flake(
122-
Path("/etc/nixos"), "nixosConfigurations.hostname"
127+
"git+file:///etc/nixos", "nixosConfigurations.hostname"
123128
)
124129

125130
with (

0 commit comments

Comments
 (0)