Skip to content

Commit 7a42b63

Browse files
committed
Updated BET tests to assert relative out_file path.
1 parent 6c889e5 commit 7a42b63

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nipype/interfaces/fsl/tests/test_preprocess.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ def test_bet(setup_infile):
4141
# Test generated outfile name
4242
better.inputs.in_file = tmp_infile
4343
outfile = fsl_name(better, "foo_brain")
44-
outpath = os.path.join(os.getcwd(), outfile)
45-
realcmd = "bet %s %s" % (tmp_infile, outpath)
44+
realcmd = "bet %s %s" % (tmp_infile, outfile)
4645
assert better.cmdline == realcmd
4746
# Test specified outfile name
4847
outfile = fsl_name(better, "/newdata/bar")
@@ -79,12 +78,11 @@ def func():
7978
# test each of our arguments
8079
better = fsl.BET()
8180
outfile = fsl_name(better, "foo_brain")
82-
outpath = os.path.join(os.getcwd(), outfile)
8381
for name, settings in list(opt_map.items()):
8482
better = fsl.BET(**{name: settings[1]})
8583
# Add mandatory input
8684
better.inputs.in_file = tmp_infile
87-
realcmd = " ".join([better.cmd, tmp_infile, outpath, settings[0]])
85+
realcmd = " ".join([better.cmd, tmp_infile, outfile, settings[0]])
8886
assert better.cmdline == realcmd
8987

9088

0 commit comments

Comments
 (0)