Update exp_to_source unit tests to use mock data instead of loading from file #9706
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Required before spacetelescope/stdatamodels#539 can be merged
This PR updates the unit tests of
exp_to_sourceto take in mock data instead of loading fits files fromtests/data/. Mocking the data is a better pattern for unit tests.This is required to move forward with the removal of the unused
V23ToSkytransform model, which was replaced by Astropy standard models about 5 years ago (#5206), because the test files are old enough that their WCS still relies onV23ToSky.There is still open discussion about whether that removal should happen, but these test updates are a good idea in any case.
This PR only touches tests, so no changelog is warranted.
Tasks
Build 12.0(use the latest build if not sure)no-changelog-entry-needed)changes/:echo "changed something" > changes/<PR#>.<changetype>.rst(see changelog readme for instructions)docs/pageokify_regteststo update the truth files