-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TST: Environment unit tests refactoring #571
Conversation
@GabrielBarberini a problem is that you renamed the variable Try replacing More replacements will be necessary I think. |
Hmmm! You are right. Didn't notice this dependency. Fixed :) Meanwhile I'll run all the others just in case |
cf85070
to
13629ed
Compare
Sorry for that, for some reason I assumed the env fixtures were used only by the env tests. Lastly, I tried to use a fixture teardown for env fixtures, but since other modules use env fixtures differently, it ended up conflicting with my change. So I had to set a request.addfinalizer() inside the unit env test that requires teardown (for deleting the For review convenience, I added it as a separate commit. Edit: I'll have to find another way to tear this down as the way I attempted is not passing internal pytest validations, maybe I'll just rollback to the way it was, one sec. |
Now all good. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #571 +/- ##
===========================================
- Coverage 72.62% 72.62% -0.01%
===========================================
Files 59 59
Lines 9598 9607 +9
===========================================
+ Hits 6971 6977 +6
- Misses 2627 2630 +3 ☔ View full report in Codecov by Sentry. |
TST: refactors tests/unit/test_environment TST: refactors environment_fixtures DOC: fix doc typo in decimal_degrees_to_arc_seconds TST: fixes example_spaceport_env legacy references TST: fixes example_plain_env legacy references TST: Rollback teardown logic in unit env test
1ca6b77
to
3894504
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.
Easy to review a PR when it is well constructed and fixes one problem at time.
My comments are only related to small convention details.
Code works, PR is clear, that's what really matters.
Thanks for the feedback! I'll address your requests soon |
This PR contributes to #480 |
Thanks again for the contribution, @GabrielBarberini , I believe we are close to approve/merge |
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.
LGTM
Pull request type
Checklist
black rocketpy/ tests/
) has passed locallypytest tests -m slow --runslow
) have passed locally --> All tests that were previously passing continued to passBreaking change
Additional information