test/cmd/find.py: switch to use mock_packages (#50358)

This commit is contained in:
Tamara Dahlgren 2025-05-07 23:33:56 -07:00 committed by GitHub
parent ef0599b53c
commit 59339be48f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -448,7 +448,7 @@ def test_find_loaded(database, working_env):
@pytest.mark.regression("37712") @pytest.mark.regression("37712")
def test_environment_with_version_range_in_compiler_doesnt_fail(tmp_path): def test_environment_with_version_range_in_compiler_doesnt_fail(tmp_path, mock_packages):
"""Tests that having an active environment with a root spec containing a compiler constrained """Tests that having an active environment with a root spec containing a compiler constrained
by a version range (i.e. @X.Y rather the single version than @=X.Y) doesn't result in an error by a version range (i.e. @X.Y rather the single version than @=X.Y) doesn't result in an error
when invoking "spack find". when invoking "spack find".