From e3fda1eca047400ca56c69c1f450cb8752e4b332 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Fri, 13 Mar 2020 15:18:58 +0000 Subject: [PATCH] TEST: test prelude wrapper --- tests/test_wrappers.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/test_wrappers.py b/tests/test_wrappers.py index 9f4819af0..078f5379c 100644 --- a/tests/test_wrappers.py +++ b/tests/test_wrappers.py @@ -195,6 +195,20 @@ def test_sigloss(): assert checkResult(result.output[0], *expected) +def test_prelude(): + with asrt.disabled(), run.dryrun(), mockFSLDIR(bin=('prelude',)) as fsldir: + prelude = op.join(fsldir, 'bin', 'prelude') + result = fw.prelude(complex='complex', + out='out', + labelslices=True, + start=5) + expected = (prelude, ('--complex=complex', + '--out=out', + '--labelslices', + '--start=5')) + assert checkResult(result.output[0], *expected) + + def test_melodic(): with asrt.disabled(), run.dryrun(), mockFSLDIR(bin=('melodic',)) as fsldir: melodic = op.join(fsldir, 'bin', 'melodic') -- GitLab