Skip to content

Commit

Permalink
Use mock_config.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed May 11, 2024
1 parent c1b77da commit 57a80f0
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/fmripost_aroma/tests/test_base.py
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'

0 comments on commit 57a80f0

Please sign in to comment.