Commit 728c638f authored by William Clarke's avatar William Clarke
Browse files

Add integration test for mrs_info.

parent a56da37b
'''FSL-MRS test script
Test the mrs_info script
Copyright Will Clarke, University of Oxford, 2021'''
# Imports
import subprocess
from pathlib import Path
# Files
testsPath = Path(__file__).parent
processed = testsPath / 'testdata/fsl_mrs/metab.nii.gz'
unprocessed = testsPath / 'testdata/fsl_mrs_preproc/metab_raw.nii.gz'
def test_single_info(tmp_path):
subprocess.check_call(['mrs_info', str(processed)])
def test_multi_info(tmp_path):
subprocess.check_call(['mrs_info', str(processed), str(unprocessed)])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment