Skip to content

Commit dfb1173

Browse files
committed
tst: add check for running with no heuristic
1 parent 7a33fb9 commit dfb1173

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

tests/test_heuristics.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,17 @@
2424

2525
# this will fail if not in project's root directory
2626
def test_smoke_convertall(tmpdir):
27-
runner(
28-
("-f convertall -c dcm2niix -o %s -b --datalad "
29-
"-s fmap_acq-3mm -d %s/{subject}/*"
30-
% (tmpdir, TESTS_DATA_PATH)
31-
).split(' ')
32-
)
27+
args = ("-c dcm2niix -o %s -b --datalad "
28+
"-s fmap_acq-3mm -d %s/{subject}/*"
29+
% (tmpdir, TESTS_DATA_PATH)
30+
).split(' ')
31+
32+
# complain if no heurisitic
33+
with pytest.raises(RuntimeError):
34+
runner(args)
35+
36+
args.extend(['-f', 'convertall'])
37+
runner(args)
3338

3439

3540
@pytest.mark.parametrize('heuristic', ['reproin', 'convertall'])

0 commit comments

Comments
 (0)