-
Notifications
You must be signed in to change notification settings - Fork 532
Pytest follow-up #1751
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
Pytest follow-up #1751
Conversation
…g the same assert as the previous one
…me lines from travis
Current coverage is 72.41% (diff: 96.77%)@@ master #1751 diff @@
==========================================
Files 1028 1055 +27
Lines 50616 52708 +2092
Methods 0 0
Messages 0 0
Branches 7333 7665 +332
==========================================
+ Hits 35994 38170 +2176
+ Misses 13495 13323 -172
- Partials 1127 1215 +88
|
…RT and COVERAGE_DATA_FILE from travis again
#NOTE_dj: not sure if this should pass, it uses cmdline from interface.base.CommandLine | ||
#assert stder.cmdline == "fslmaths a.nii -Tstd %s"%os.path.join(testdir, "a_std.nii") | ||
stder = fsl.StdImage(in_file="a.nii", output_type='NIFTI') | ||
assert stder.cmdline == "fslmaths a.nii -Tstd %s"%os.path.join(testdir, "a_std.nii") |
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.
use .format()
…re used only locally in test functions)
@@ -19,4 +19,4 @@ def test_ICC_rep_anova(): | |||
assert round(icc, 2) == 0.71 | |||
assert dfc == 3 | |||
assert dfe == 15 | |||
assert r_var / (r_var + e_var) == icc | |||
assert np.isclose(r_var / (r_var + e_var), icc) |
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.
prefer allclose
for compatibility with earlier numpy versions.
@djarecka - |
@djarecka - if you can finish the |
@satra even without |
@satra I'm a bit stuck with |
@djarecka - you are correct - the autotests are not created because they are the same exact class as the |
|
@satra ok, I've removed the extra tests. Just wasn't sure, if you want to disable auto tests for I also changed earlier |
@satra can you also check this assert? https://github.com/nipy/nipype/blob/master/nipype/interfaces/tests/test_base.py#L137 |
@djarecka - i can't seem to figure out why that should raise a |
regarding |
This is a follow-up to my previous Pytes PR (#1722), this time I've read the Satra review :)
test_auto_ACompCor.py
and changingtest_auto_TCompCor.py
, so it agrees with checkspec.py outputtest_BEDPOSTX.py
andtest_Xfibres.py
__init__.py
test_math.py
that was failingStill TODO:
test_BEDPOSTX.py
andtest_Xfibres.py
don't affect anything IMO. Should I createtest_BEDPOSTX5.py
andtest_Xfibres5.py
, and deletetest_auto_BEDPOSTX5.py
andtest_auto_Xfibres5.py
?__init__.py
is not finished,nipype.test()
doesn't work