Closed mraspaud closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.98%. Comparing base (
1832175
) to head (f9dba55
). Report is 41 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
np.testing
. I would also add that tests for me are rather internal/private, while testing is intended to be public api.Sounds good.
Users may want to debug their custom composites, both configs and actual execution of custom composite python code. Is there a way to allow for that? I suppose this would require mocking the lower-level Scene readers dictionary and distinguishing between the users
scene_dict
being reader datasets versus composite datasets. Maybe not worth it.
The final three tests at https://github.com/pytroll/satpy/blob/main/satpy/tests/modifier_tests/test_parallax.py test loading a composite via the Scene.load
interface, involving a fake configuration file and mocking satpy.composites.config_loader.config_search_paths
.
Maybe those tests could use this utility instead (not sure).
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
satpy/tests/reader_tests/test_ami_l1b.py | 3 | 98.17% | ||
satpy/readers/ami_l1b.py | 4 | 97.32% | ||
<!-- | Total: | 7 | --> |
Totals | |
---|---|
Change from base Build 10006768762: | 0.02% |
Covered Lines: | 51868 |
Relevant Lines: | 53981 |
This PR adds a testing utility to satpy for faking reading.
Useful for testing programs that use satpy for reading with actually needing to read anything. Can be used like this:
and the scene will be loaded with the contents of
scene_dict
.AUTHORS.md
if not there already