unit tests: switch test/cmd/config.py to mock packages (#50313)

This commit is contained in:
Tamara Dahlgren 2025-05-05 23:14:32 -07:00 committed by GitHub
parent 5c7fe24bec
commit 3de68ef976
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,6 +20,8 @@
config = spack.main.SpackCommand("config")
env = spack.main.SpackCommand("env")
pytestmark = pytest.mark.usefixtures("mock_packages")
def _create_config(scope=None, data={}, section="packages"):
scope = scope or spack.config.default_modify_scope()