Skip to content
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

[98BT] Issue pipeline testing #184

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions tests/pipelines/test_team_98BT.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
from narps_open.utils.configuration import Configuration
from narps_open.pipelines.team_98BT import PipelineTeam98BT

TEMPORARY_DIR = join(Configuration()['directories']['test_runs'], 'test_98BT')

class TestPipelinesTeam98BT:
""" A class that contains all the unit tests for the PipelineTeam98BT class."""

Expand Down Expand Up @@ -84,8 +82,7 @@ def test_fieldmap_info():

@staticmethod
@mark.unit_test
@mark.parametrize('remove_test_dir', TEMPORARY_DIR)
def test_parameters_files(remove_test_dir):
def test_parameters_files(temporary_data_dir):
""" Test the get_parameters_files method
For this test, we created the two following files by downsampling output files
from the preprocessing pipeline :
Expand All @@ -105,11 +102,11 @@ def test_parameters_files(remove_test_dir):

# Get new parameters file
PipelineTeam98BT.get_parameters_file(
parameters_file, wc2_file, func_file, 'sid', 'rid', TEMPORARY_DIR)
parameters_file, wc2_file, func_file, 'sid', 'rid', temporary_data_dir)

# Check parameters file was created
created_parameters_file = join(
TEMPORARY_DIR, 'parameters_files', 'parameters_file_sub-sid_run-rid.tsv')
temporary_data_dir, 'parameters_files', 'parameters_file_sub-sid_run-rid.tsv')
assert exists(created_parameters_file)

# Check contents
Expand Down
Loading