Remove unmaintained and broken pytest-lazy-fixture (#3193)

Remove pytest-lazy-fixtures
This commit is contained in:
Antoine Prouvost 2024-02-19 13:31:52 -05:00 committed by GitHub
parent 00219a578e
commit 3a6d010e38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -28,7 +28,6 @@ dependencies:
- mitmproxy
- pytest >=7.3.0
- pytest-asyncio
- pytest-lazy-fixture
- pytest-xprocess
- requests
- sel(win): pywin32

View File

@ -248,8 +248,13 @@ def same_repodata_json_solv(cache: Path):
class TestMultiplePkgCaches:
@pytest.mark.parametrize("cache", (pytest.lazy_fixture(("tmp_cache", "tmp_cache_alt"))))
def test_different_caches(self, tmp_home, tmp_root_prefix, cache):
@pytest.mark.parametrize("which_cache", ["tmp_cache", "tmp_cache_alt"])
def test_different_caches(
self, tmp_home, tmp_root_prefix, tmp_cache, tmp_cache_alt, which_cache
):
# Test parametrization
cache = {"tmp_cache": tmp_cache, "tmp_cache_alt": tmp_cache_alt}[which_cache]
os.environ["CONDA_PKGS_DIRS"] = f"{cache}"
env_name = "some_env"
res = helpers.create("-n", env_name, "xtensor", "-v", "--json", no_dry_run=True)