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

authored by Thiago Kenji Okada and committed by GitHub d63c01a0 6d97fbb8

+2 -7
+2 -7
pkgs/by-name/ni/nixos-rebuild-ng/src/tests/test_models.py
··· 108 108 return_value=True, 109 109 ), 110 110 patch( 111 - "pathlib.Path.is_symlink", 111 + "pathlib.Path.resolve", 112 112 autospec=True, 113 - return_value=False, 113 + return_value=Path("/etc/nixos/flake.nix"), 114 114 ), 115 115 ): 116 116 assert m.Flake.from_arg(None, None) == m.Flake( ··· 120 120 with ( 121 121 patch( 122 122 "pathlib.Path.exists", 123 - autospec=True, 124 - return_value=True, 125 - ), 126 - patch( 127 - "pathlib.Path.is_symlink", 128 123 autospec=True, 129 124 return_value=True, 130 125 ),