Skip to content

Commit 53896a6

Browse files
committed
remove print statement
1 parent 444dd9e commit 53896a6

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/ansys/mechanical/core/run.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ def _cli_impl(
190190
if DRY_RUN:
191191
return args, env
192192
else:
193-
print(args)
194193
_run(args, env, False, True)
195194

196195
if private_appdata:

tests/test_cli.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,21 @@ def test_cli_script(disable_cli):
112112
assert "foo.py" in args
113113

114114

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+
115130
@pytest.mark.cli
116131
def test_cli_features(disable_cli):
117132
with pytest.warns(UserWarning):

0 commit comments

Comments
 (0)