Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip test_uninstallation_remove_caches if not on CI and when CONDA_PKGS_DIRS is set. #118

Merged
merged 3 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading