Skip to content
Snippets Groups Projects
Commit 2f42d56e authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Callfsl unit test was broken

parent b73d553e
No related branches found
No related tags found
No related merge requests found
...@@ -31,10 +31,10 @@ def setup_module(): ...@@ -31,10 +31,10 @@ def setup_module():
# or 'fslinfo ...' # or 'fslinfo ...'
def mock_check_output(args): def mock_check_output(args):
if args[0].endswith('fslinfo'): if args[0].endswith('fslinfo'):
return 'info' return 'info'.encode('utf-8')
img = nib.load(args[-2]) img = nib.load(args[-2])
return str(img.get_data().mean()) return str(img.get_data().mean()).encode('utf-8')
def test_callfsl(): def test_callfsl():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment