Skip to content

Commit 7d4587f

Browse files
committed
added test for trailing options
1 parent f16ce89 commit 7d4587f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pydra/compose/shell/tests/test_shell_fields.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,13 @@ def test_shell_missing_executable_dynamic():
984984
)
985985

986986

987+
def test_shell_trailing_option_fail():
988+
989+
with pytest.raises(ValueError, match="Found an option without a field"):
990+
991+
shell.define("ls <directory:generic/directory> --unparameterized-option ")
992+
993+
987994
def test_shell_help1():
988995

989996
Shelly = shell.define(

0 commit comments

Comments
 (0)