nixos-rebuild-ng: fix tests in darwin

Closes #423988.
This commit is contained in:
Thiago Kenji Okada
2025-07-10 10:08:14 +01:00
parent 40de82b434
commit 306c312fc1
@@ -108,9 +108,9 @@ def test_flake_from_arg(
return_value=True,
),
patch(
"pathlib.Path.is_symlink",
"pathlib.Path.resolve",
autospec=True,
return_value=False,
return_value=Path("/etc/nixos/flake.nix"),
),
):
assert m.Flake.from_arg(None, None) == m.Flake(
@@ -123,11 +123,6 @@ def test_flake_from_arg(
autospec=True,
return_value=True,
),
patch(
"pathlib.Path.is_symlink",
autospec=True,
return_value=True,
),
patch(
"pathlib.Path.resolve",
autospec=True,