-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add tests for qtpy sub-module #64
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #64 +/- ##
==========================================
+ Coverage 86.49% 89.15% +2.65%
==========================================
Files 35 35
Lines 1355 1355
==========================================
+ Hits 1172 1208 +36
+ Misses 183 147 -36 ☔ View full report in Codecov by Sentry. |
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.
Looking good - one tiny comment - thank you!
|
||
def test_add_int_box(qtbot, box): | ||
""" | ||
Smoke tests for add_float_box for all conditional branches |
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.
Smoke tests for add_float_box for all conditional branches | |
Smoke tests for add_int_box for all conditional branches |
Could you clarify what "all conditional branches" means in each of the tests in this file by updating the docstrings?
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.
I updated the docstrings to make it clearer what each of these tests do. Feel free to merge if you're happy with it!
Description
What is this PR
Why is this PR needed?
The coverage of the qtpy sub-module is currently only 73%
What does this PR do?
Increases test coverage on the qtpy sub-module to >90%. Also expands some type hints / docstrings so functions are consistent with each other.
References
Closes #63
How has this PR been tested?
All tests pass locally.
Is this a breaking change?
No
Does this PR require an update to the documentation?
No
Checklist: