TST: cover geospatial extent conversions - #1158
Merged
Gui-FernandesBR merged 1 commit intoAug 14, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1158 +/- ##
===========================================
+ Coverage 82.18% 83.51% +1.33%
===========================================
Files 122 130 +8
Lines 16355 17082 +727
===========================================
+ Hits 13441 14266 +825
+ Misses 2914 2816 -98 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ting-hong-shieh
marked this pull request as ready for review
August 14, 2026 13:46
Gui-FernandesBR
approved these changes
Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This adds unit coverage for the three geospatial extent helpers in
rocketpy.tools:mercator_to_wgs84;The change is test-only and follows the small, deterministic coverage slices discussed in #709.
Coverage
The base and head measurements used the same command and inputs.
rocketpy/tools.pytests/unit/test_tools.pyresultsMerge base:
2f9a44b92e5288145ba0c1e93f88aef57590437cHead:
58f9981f314f74e207a1523f652e57d70b778cc3Validation
Head results: 28 passed with five pre-existing warnings; Ruff passed and the file was already formatted.
The round-trip assertion allows an absolute error of 0.2 m. The fixtures exercise the spherical Mercator equations with an explicit radius of 6,378,137 m; they do not add ellipsoidal-Earth or projection-domain behavior.
Environment
developcheckout)Closes no issue; contributes to #709.