File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
src/ansys/mechanical/core Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,6 @@ def _cli_impl(
190
190
if DRY_RUN :
191
191
return args , env
192
192
else :
193
- print (args )
194
193
_run (args , env , False , True )
195
194
196
195
if private_appdata :
Original file line number Diff line number Diff line change @@ -112,6 +112,21 @@ def test_cli_script(disable_cli):
112
112
assert "foo.py" in args
113
113
114
114
115
+ @pytest .mark .cli
116
+ def test_cli_scriptargs (disable_cli ):
117
+ args , _ = _cli_impl (
118
+ exe = "AnsysWBU.exe" ,
119
+ version = 241 ,
120
+ input_script = "foo.py" ,
121
+ script_args = "arg1, arg2, arg3" ,
122
+ graphical = True ,
123
+ )
124
+ assert "-ScriptArgs" in args
125
+ assert '"arg1, arg2, arg3"' in args
126
+ assert "-script" in args
127
+ assert "foo.py" in args
128
+
129
+
115
130
@pytest .mark .cli
116
131
def test_cli_features (disable_cli ):
117
132
with pytest .warns (UserWarning ):
You can’t perform that action at this time.
0 commit comments