diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2021-01-31 11:31:57 +0100 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2021-05-21 17:59:50 +0200 |
commit | 0678d5df90f8cb9207536d77f00cb8a0eee6a373 (patch) | |
tree | 1ef1572bd67b15f892aec245e55f8a2ba75207a4 /pytest.ini | |
parent | 2a4d2f905cdc4e65839fdcf0075e822d64d0f0a5 (diff) | |
download | spack-0678d5df90f8cb9207536d77f00cb8a0eee6a373.tar.gz spack-0678d5df90f8cb9207536d77f00cb8a0eee6a373.tar.bz2 spack-0678d5df90f8cb9207536d77f00cb8a0eee6a373.tar.xz spack-0678d5df90f8cb9207536d77f00cb8a0eee6a373.zip |
repo: generalize "swap" context manager to also accept paths
The method is now called "use_repositories" and
makes it clear in the docstring that it accepts
as arguments either Repo objects or paths.
Since there was some duplication between this
contextmanager and "use_repo" in the testing framework,
remove the latter and use spack.repo.use_repositories
across the entire code base.
Make a few adjustment to MockPackageMultiRepo, since it was
stating in the docstring that it was supposed to mock
spack.repo.Repo and was instead mocking spack.repo.RepoPath.
(cherry picked from commit 1a8963b0f4c11c4b7ddd347e6cd95cdc68ddcbe0)
Diffstat (limited to 'pytest.ini')
0 files changed, 0 insertions, 0 deletions