From 931d034da4b7ff1affa296b05ccd42186e9237c9 Mon Sep 17 00:00:00 2001 From: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> Date: Tue, 6 May 2025 23:07:11 -0700 Subject: [PATCH] test/patch.py: switch tests to use mock_packages (#50337) --- lib/spack/spack/test/patch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/spack/spack/test/patch.py b/lib/spack/spack/test/patch.py index 4d0d4a15cb4..7afdd4b5f96 100644 --- a/lib/spack/spack/test/patch.py +++ b/lib/spack/spack/test/patch.py @@ -89,7 +89,7 @@ def mock_patch_stage(tmpdir_factory, monkeypatch): (os.path.join(data_path, "foo.patch"), platform_url_sha, None), ], ) -def test_url_patch(mock_patch_stage, filename, sha256, archive_sha256, config): +def test_url_patch(mock_packages, mock_patch_stage, filename, sha256, archive_sha256, config): # Make a patch object url = url_util.path_to_file_url(filename) s = spack.concretize.concretize_one("patch") @@ -466,7 +466,7 @@ def test_equality(): assert patch1 != "not a patch" -def test_sha256_setter(mock_patch_stage, config): +def test_sha256_setter(mock_packages, mock_patch_stage, config): path = os.path.join(data_path, "foo.patch") s = spack.concretize.concretize_one("patch") patch = spack.patch.FilePatch(s.package, path, level=1, working_dir=".")