-
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
Merged
Merged
Pytest follow-up #1751
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
bb24c59
restoring 2 tests that had only import statement, changing comments
djarecka 9fb7730
fixing one assert in test_math
djarecka b261208
removing one test from interfaces/tests/test_base.py; it was repeatin…
djarecka baa349b
restring one skipif in interfaces/tests/test_io.py
djarecka 74bd3b8
cleaning:removing pdb
djarecka 688774b
changing a simple assert to np.isclose in test_icc_anova
djarecka 54f496c
adding the auto test for ACompCor
djarecka e988b97
changing test_auto_TCompCor.py to the output of checkspecs.py
djarecka 547a386
removing scripts from tools directory that are not used anymore
djarecka ce1b3e2
removing fixes
djarecka c8ee538
removing coverage from travis (so the coverage is calculated from Cir…
djarecka 623f20f
fixing the travis file
djarecka f353fbb
Removing nosetest from nipype/__init__.py; pytest version is missing …
djarecka d7c6a54
restore get_info in nipype/__init__.py
djarecka 7d77343
removing workflows from the directories that are omitted
djarecka e981a53
trying to fix coverage (codecov doesnt report anything), restoring so…
djarecka a3cf60d
it looks like codecov works at the end, removing COVERAGE_PROCESS_STA…
djarecka 7d529e0
changing %s to format in test_maths (in all places that the strings a…
djarecka 3786640
removing test_BEDPOSTX.py and test_XFibres.py (auto tests wont be cre…
djarecka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,5 @@ source = nipype | |
include = */nipype/* | ||
omit = | ||
*/nipype/external/* | ||
*/nipype/workflows/* | ||
*/nipype/fixes/* | ||
*/setup.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT | ||
from ..confounds import ACompCor | ||
|
||
|
||
def test_ACompCor_inputs(): | ||
input_map = dict(components_file=dict(usedefault=True, | ||
), | ||
header=dict(), | ||
ignore_exception=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
mask_file=dict(), | ||
num_components=dict(usedefault=True, | ||
), | ||
realigned_file=dict(mandatory=True, | ||
), | ||
regress_poly_degree=dict(usedefault=True, | ||
), | ||
use_regress_poly=dict(usedefault=True, | ||
), | ||
) | ||
inputs = ACompCor.input_spec() | ||
|
||
for key, metadata in list(input_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
assert getattr(inputs.traits()[key], metakey) == value | ||
|
||
|
||
def test_ACompCor_outputs(): | ||
output_map = dict(components_file=dict(), | ||
) | ||
outputs = ACompCor.output_spec() | ||
|
||
for key, metadata in list(output_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
assert getattr(outputs.traits()[key], metakey) == value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.