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

Function test_preparse

tests/test_plugin.py:379–386  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

377#
378###
379def test_preparse(capsys) -> None:
380 app = PluggedApp()
381 app.register_postparsing_hook(app.preparse)
382 app.onecmd_plus_hooks("say hello")
383 out, err = capsys.readouterr()
384 assert out == "hello\n"
385 assert not err
386 assert app.called_preparse == 1
387
388
389###

Callers

nothing calls this directly

Calls 3

PluggedAppClass · 0.85
onecmd_plus_hooksMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…