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

Function test_should_continue_multiline

tests/test_cmd2.py:3182–3194  ·  view source on GitHub ↗
(multiline_app: MultilineApp, line: str, should_continue: bool)

Source from the content-addressed store, hash-verified

3180 ],
3181)
3182def test_should_continue_multiline(multiline_app: MultilineApp, line: str, should_continue: bool) -> None:
3183 mock_buffer = mock.MagicMock()
3184 mock_buffer.text = line
3185
3186 mock_app = mock.MagicMock()
3187 mock_app.current_buffer = mock_buffer
3188
3189 run_cmd(multiline_app, "macro create single_mac help {1}")
3190 run_cmd(multiline_app, "macro create multi_mac orate {1}")
3191 run_cmd(multiline_app, "macro create wrapper_mac multi_mac {1} {2}")
3192
3193 with mock.patch("cmd2.cmd2.get_app", return_value=mock_app):
3194 assert multiline_app._should_continue_multiline() is should_continue
3195
3196
3197@with_ansi_style(ru.AllowStyle.ALWAYS)

Callers

nothing calls this directly

Calls 2

run_cmdFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…