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

Function test_register_cmdfinalization_hook_parameter_count

tests/test_plugin.py:813–818  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

811#
812###
813def test_register_cmdfinalization_hook_parameter_count() -> None:
814 app = PluggedApp()
815 with pytest.raises(TypeError):
816 app.register_cmdfinalization_hook(app.cmdfinalization_hook_not_enough_parameters)
817 with pytest.raises(TypeError):
818 app.register_cmdfinalization_hook(app.cmdfinalization_hook_too_many_parameters)
819
820
821def test_register_cmdfinalization_hook_no_parameter_annotation() -> None:

Callers

nothing calls this directly

Calls 2

PluggedAppClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…