Skip to content

Add mocking to all pyspectral downloads in tests#790

Merged
djhoese merged 3 commits intossec:mainfrom
djhoese:test-mock-pyspectral
Feb 2, 2026
Merged

Add mocking to all pyspectral downloads in tests#790
djhoese merged 3 commits intossec:mainfrom
djhoese:test-mock-pyspectral

Conversation

@djhoese
Copy link
Member

@djhoese djhoese commented Feb 2, 2026

Our CI has been downloading pyspectral LUTs every time they execute. Very wasteful in many ways. New utilities from pyspectral make it very simple to mock all of this downloading.

Update: I was wrong. I'm mocking the entire Satpy Scene so it never even reached pyspectral to do a download. This PR now only forbids downloading which should catch any future tests triggering pyspectral's downloads.

@djhoese djhoese self-assigned this Feb 2, 2026
@djhoese djhoese added the code cleanup Refactoring and code complexity cleanup label Feb 2, 2026
@coveralls
Copy link

coveralls commented Feb 2, 2026

Coverage Status

coverage: 85.683% (+0.01%) from 85.669%
when pulling 69f3d0f on djhoese:test-mock-pyspectral
into 0755f0b on ssec:main.

@djhoese djhoese merged commit e682258 into ssec:main Feb 2, 2026
9 checks passed
@djhoese djhoese deleted the test-mock-pyspectral branch February 2, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code cleanup Refactoring and code complexity cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants