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

Function test_register_postcmd_hook_parameter_count

tests/test_plugin.py:694–699  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

692#
693####
694def test_register_postcmd_hook_parameter_count() -> None:
695 app = PluggedApp()
696 with pytest.raises(TypeError):
697 app.register_postcmd_hook(app.postcmd_hook_not_enough_parameters)
698 with pytest.raises(TypeError):
699 app.register_postcmd_hook(app.postcmd_hook_too_many_parameters)
700
701
702def test_register_postcmd_hook_no_parameter_annotation() -> None:

Callers

nothing calls this directly

Calls 2

PluggedAppClass · 0.85
register_postcmd_hookMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…