MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / test_shell_manual_call

Function test_shell_manual_call

tests/test_cmd2.py:330–339  ·  view source on GitHub ↗
(base_app)

Source from the content-addressed store, hash-verified

328
329
330def test_shell_manual_call(base_app) -> None:
331 # Verifies crash from Issue #986 doesn't happen
332 cmds = ['echo "hi"', 'echo "there"', 'echo "cmd2!"']
333 cmd = ";".join(cmds)
334
335 base_app.do_shell(cmd)
336
337 cmd = "&&".join(cmds)
338
339 base_app.do_shell(cmd)
340
341
342def test_base_error(base_app) -> None:

Callers

nothing calls this directly

Calls 1

do_shellMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…