Skip to content

Commit a2f6edd

Browse files
committed
add test for no input_script but script_args
1 parent d6eaa69 commit a2f6edd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_cli.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,17 @@ def test_cli_scriptargs(disable_cli):
127127
assert "foo.py" in args
128128

129129

130+
@pytest.mark.cli
131+
def test_cli_scriptargs_no_script(disable_cli):
132+
with pytest.raises(Exception):
133+
_cli_impl(
134+
exe="AnsysWBU.exe",
135+
version=241,
136+
script_args="arg1,arg2,arg3",
137+
graphical=True,
138+
)
139+
140+
130141
@pytest.mark.cli
131142
def test_cli_scriptargs_singlequote(disable_cli):
132143
args, _ = _cli_impl(

0 commit comments

Comments
 (0)