Commit 125dd006 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

TEST: Test config file feature

parent c11e5f3d
#!/usr/bin/env python
#
# test_config.py -
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
import os.path as op
import funpack.config as config
import funpack.custom as custom
from . import clear_plugins
@clear_plugins
def test_parseArgs_fixPath():
custom.registerBuiltIns()
fullpath = op.normpath(
op.join(op.dirname(__file__), '..',
'configs', 'fmrib', 'variables_clean.tsv'))
relpath = op.join('fmrib', 'variables_clean.tsv')
dotpath = 'fmrib.variables_clean'
argv = ['-vf', fullpath,
'-vf', relpath,
'-vf', dotpath, 'output', 'input']
args = config.parseArgs(argv)[0]
assert args.variable_file == [fullpath, fullpath, fullpath]
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