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

Function test_register_precmd_hook_parameter_count

tests/test_plugin.py:565–570  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

563#
564#####
565def test_register_precmd_hook_parameter_count() -> None:
566 app = PluggedApp()
567 with pytest.raises(TypeError):
568 app.register_precmd_hook(app.precmd_hook_not_enough_parameters)
569 with pytest.raises(TypeError):
570 app.register_precmd_hook(app.precmd_hook_too_many_parameters)
571
572
573def test_register_precmd_hook_no_parameter_annotation() -> None:

Callers

nothing calls this directly

Calls 2

PluggedAppClass · 0.85
register_precmd_hookMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…