Skip to content

tests: update missing-index tests for missing_index='error' default - #59

Merged
SmithB merged 2 commits into
mainfrom
fix_missing_index_tests
Sep 28, 2026
Merged

SmithB merged 2 commits into
mainfrom
fix_missing_index_tests

Conversation

@SmithB

@SmithB SmithB commented Sep 28, 2026

Copy link
Copy Markdown
Owner

04c2064 made read_ATL11_granule_cloud_items() raise FileNotFoundError for a missing geoIndex by default (missing_index='error'), with the old warn-and-skip behaviour available as missing_index='skip'. Two tests still expected the old default and failed. Pass missing_index='skip' in those, and add tests that the default raises, for both local and remote index paths.

Ben Smith and others added 2 commits September 28, 2026 09:49
04c2064 made read_ATL11_granule_cloud_items() raise FileNotFoundError
for a missing geoIndex by default (missing_index='error'), with the
old warn-and-skip behaviour available as missing_index='skip'.  Two
tests still expected the old default and failed.  Pass
missing_index='skip' in those, and add tests that the default raises,
for both local and remote index paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tests/test_remote_cache.py (added in 2d438e1) imports fsspec at module
level, but fsspec is only in the optional 'cloud' extra, not in the
pixi dev environment CI runs in.  Collection failed with
ModuleNotFoundError and pytest stopped before running any tests
(exit code 2).  Add fsspec to [tool.pixi.feature.dev.dependencies] and
re-lock with pixi 0.79.0, the version CI pins.  The lock change only
adds fsspec 2026.9.0.

Checked with `pixi install --locked -e dev` and `pixi run coverage`:
268 passed, 4 skipped, test_remote_cache.py included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SmithB
SmithB merged commit ebe6c75 into main Sep 28, 2026
2 checks passed
@SmithB
SmithB deleted the fix_missing_index_tests branch September 28, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant