nixos-rebuild-ng: fix tests in darwin (#423992)

This commit is contained in:
Thiago Kenji Okada
2025-07-10 20:01:00 +01:00
committed by GitHub
@@ -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,