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

Function test_nonexistent_macro

tests/test_cmd2.py:3132–3144  ·  view source on GitHub ↗
(base_app)

Source from the content-addressed store, hash-verified

3130
3131
3132def test_nonexistent_macro(base_app) -> None:
3133 from cmd2.parsing import (
3134 StatementParser,
3135 )
3136
3137 exception = None
3138
3139 try:
3140 base_app._resolve_macro(StatementParser().parse("fake"))
3141 except KeyError as e:
3142 exception = e
3143
3144 assert exception is not None
3145
3146
3147@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

StatementParserClass · 0.90
_resolve_macroMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…