-
-
Notifications
You must be signed in to change notification settings - Fork 282
Add some more tests and checks #1255
Add some more tests and checks #1255
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1255 +/- ##
==========================================
+ Coverage 91.47% 91.67% +0.19%
==========================================
Files 79 79
Lines 4143 4144 +1
Branches 362 364 +2
==========================================
+ Hits 3790 3799 +9
+ Misses 266 261 -5
+ Partials 87 84 -3
Continue to review full report at Codecov.
|
The logic when building the We are only including the propagators which are shared among the elliptic, parabolic and hyperbolic ones. Thank you for noticing this @Yash-10! 🚀 |
This could be fixed by doing: ALL_PROPAGATORS = set(ELLIPTIC_PROPAGATORS + PARABOLIC_PROPAGATORS + HYPERBOLIC_PROPAGATORS) |
Thanks @jorgepiloto for your answer! Also, while we were on that module, I noticed that the "Note" inside |
0010d81
to
668b97c
Compare
Slight change in docstring Format table
668b97c
to
3859842
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some suggestions. After those, this is ready to be merged by my side 👍🏽
About having a global marker: yes, absolutely! I didn't know having a In #1253 I suggested to make |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! Ready to merge, unless @Yash-10 wants to make some extra additions (like the global pytest marker)
(And pending on the comment @jorgepiloto left) |
Thanks @astrojuanlu I added the global pytest marker. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All modifications looking good, approving this 👍🏽
This pull request is a continuation of addition of some tests and checks.
Questions
@pytest.mark.skipif("czml3" not in sys.modules, reason="requires czml3")
gets repeated for each test intest_czml.py
. Could we instead have a globalpytestmark
to skip the whole module ifczml3
is not installed?ALL_PROPAGATORS
intwobody/propagation.py
seem to not containmarkley
anddanby
. This seems to be contrary to the name of the variable. Is this expected? If not, should we include all the propagators inALL_PROPAGATORS
?In Some test additions #1253, you had advised to make
expected_doc
as a fixture. It seems that there are moreexpected_doc
's inside the tests. Is it necessary to have a fixture for each of them?@astrojuanlu Could you let me know what do you think about the above questions?
Thanks!