Skip to content

Commit

Permalink
Skip test_uninstallation_remove_caches if not on CI and when `CONDA…
Browse files Browse the repository at this point in the history
…_PKGS_DIRS` is set. (#118)
  • Loading branch information
marcoesters authored Jan 7, 2025
1 parent 33ed556 commit b88da2f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
19 changes: 19 additions & 0 deletions news/118-skip-uninstallation-caches-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* Skip `test_uninstallation_remove_caches` if not on CI or if `CONDA_PKGS_DIRS` is set. (#118)

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* <news item>
3 changes: 3 additions & 0 deletions tests/test_uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,14 @@ def _shortcuts_found(shortcut_env: Path) -> list:
(True, False),
ids=("shared pkgs", "remove pkgs"),
)
@pytest.mark.skipif(not ON_CI, reason="CI only - may remove shared caches")
def test_uninstallation_remove_caches(
mock_system_paths: dict[str, Path],
tmp_env: TmpEnvFixture,
shared_pkgs: bool,
):
if "CONDA_PKGS_DIRS" in os.environ:
pytest.skip("Test will fail with CONDA_PKGS_DIRS set.")
# Set up notices
if ON_WIN:
try:
Expand Down

0 comments on commit b88da2f

Please sign in to comment.