-
Notifications
You must be signed in to change notification settings - Fork 261
TEST: Drop nose for pytest #865
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #865 +/- ##
==========================================
+ Coverage 89.34% 91.63% +2.29%
==========================================
Files 96 96
Lines 12378 12062 -316
Branches 2184 2173 -11
==========================================
- Hits 11059 11053 -6
+ Misses 970 677 -293
+ Partials 349 332 -17
Continue to review full report at Codecov.
|
a7eb937
to
2de4052
Compare
…reason cant run the tests in one pytest command, so added an extra line to travis for now
…helping functions)
…ass check to all of the test methods: couldnt find better way for suppressing tests from abstract classes and allowing for testing from all child classes
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.
Had a read-through of all of this. Most things look reasonable. I had a few comments mostly on alternative idioms we can try moving to.
nibabel/tests/test_deprecator.py
Outdated
assert_equal(func.__doc__, 'foo\n') | ||
assert func() == None | ||
assert len(w) == 1 | ||
assert w[0].category is DeprecationWarning |
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 general form of:
with clear_and_catch_warnings(...) as w:
warnings.simplefilter('always')
# call
assert len(w) == 1
assert w[0].category is DeprecationWarning
can be replaced with:
with pytest.deprecated_call():
assert func() == None
nibabel/tests/test_recoder.py
Outdated
with pytest.raises(AttributeError): | ||
rc.__getattribute__('label') | ||
|
||
def test_recoder_3(): |
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.
Doubled up. We might be masking the first one of these...
@effigies - thanks for reviewing, I'll address the comments and change the code before Tue |
@djarecka I just wanted to establish a baseline status. I'm okay with using this as a starting point and divvying up jobs on Tuesday. Of course, feel free to push on anything you like before then. |
TEST: Final nose purge
Hi all, this is ready, as far as I'm concerned. There are further things that we can do, but the task of removing the dependency on There's a slightly weird issue where the What do y'all think? Anything you see as hold-ups? |
Okay. I'm doing it. Thanks all for sprinting on this with me! |
This PR exists to make all changes related to #864 easy to view, and makes CI status more visible.
Closes #864.
Replaces #840.