Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michiel Cottaar
fsl_mrs
Commits
728c638f
Commit
728c638f
authored
Feb 18, 2021
by
William Clarke
Browse files
Add integration test for mrs_info.
parent
a56da37b
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl_mrs/tests/test_scripts_mrs_info.py
0 → 100644
View file @
728c638f
'''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
)])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment