-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,18 +1,22 @@ | ||
"""Tests for fmripost_aroma.workflows.""" | ||
|
||
from fmripost_aroma.tests.tests import mock_config | ||
|
||
|
||
def test_init_ica_aroma_wf(): | ||
from fmripost_aroma.workflows.aroma import init_ica_aroma_wf | ||
|
||
wf = init_ica_aroma_wf( | ||
bold_file='sub-01_task-rest_bold.nii.gz', | ||
metadata={'RepetitionTime': 2.0}, | ||
) | ||
assert wf.name == 'aroma_task_rest_wf' | ||
with mock_config(): | ||
wf = init_ica_aroma_wf( | ||
bold_file='sub-01_task-rest_bold.nii.gz', | ||
metadata={'RepetitionTime': 2.0}, | ||
) | ||
assert wf.name == 'aroma_task_rest_wf' | ||
|
||
|
||
def test_init_denoise_wf(): | ||
from fmripost_aroma.workflows.aroma import init_denoise_wf | ||
|
||
wf = init_denoise_wf(bold_file='sub-01_task-rest_bold.nii.gz') | ||
assert wf.name == 'denoise_task_rest_wf' | ||
with mock_config(): | ||
wf = init_denoise_wf(bold_file='sub-01_task-rest_bold.nii.gz') | ||
assert wf.name == 'denoise_task_rest_wf' |