-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Move tests to tests folder #216
Conversation
…into andrewgsavage-tests
This doesn't have the 1to2 commits showing, maybe this will work? |
The diff here looks good to me. Additionally, I diffed testing.py and helpers.py against the old test_uncertainties.py and confirmed they are clean relocations of code from there. I think the one outstanding point here before merge is to resolve @jagerber48 and @newville's reservations about |
Thanks, the merging issues distracted me from those comments. I agree with renaming to
Yes, these functions are only used by the tests but they are of value to downstream libraries, and they can't import from I expect these functions would only be used by advanced python users who can recognise From a downstream user perspective, I'd like them included in the public API so I can import them without them moving in a future version. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #216 +/- ##
==========================================
- Coverage 95.70% 95.59% -0.12%
==========================================
Files 11 12 +1
Lines 1908 1905 -3
==========================================
- Hits 1826 1821 -5
- Misses 82 84 +2 ☔ View full report in Codecov by Sentry. |
Ok I see. I hadn't used Still, for now,
has my vote. I can see that it could be useful to expose these methods. But, having a look through This strategy minimizes adding new work now. Also exposing such a |
+1 on "We could just put them in helpers.py for now and come back to making them public later." |
This looks good to me now, but I think the imports removed in #208 are restored here. |
Co-authored-by: Will Shanks <[email protected]>
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.
Thanks very much! This looks good to me.
I think we can ignore the coverage check marked as "unsuccessful". You rearranged all the testing code, and the coverage of those tests is still > 95%. Let's call that "excellent".
The tool that does a simple count of tested lines of code (to be clear, a helpful thing to know) injects itself CI processes and claims that any loss of coverage is "tests FAIL".
That's just game-ifying the process, which is something we should refuse.
I think this can be merged. Any objections? |
It looks good to me now as well. We had a little discussion of coverage here. I agree it is annoying it puts a red X on the PR for a 0.3% change in coverage. To me coverage passing/failing a PR only makes sense if we are diligent about using |
No description provided.