()
| 384 | |
| 385 | @pytest.fixture |
| 386 | def parser(): |
| 387 | from cmd2.parsing import ( |
| 388 | StatementParser, |
| 389 | ) |
| 390 | |
| 391 | return StatementParser( |
| 392 | terminators=[";", "&"], |
| 393 | multiline_commands=["multiline"], |
| 394 | aliases={ |
| 395 | "helpalias": "help", |
| 396 | "42": "theanswer", |
| 397 | "l": "!ls -al", |
| 398 | "anothermultiline": "multiline", |
| 399 | "fake": "run_pyscript", |
| 400 | }, |
| 401 | shortcuts={"?": "help", "!": "shell"}, |
| 402 | ) |
| 403 | |
| 404 | |
| 405 | def test_multiline_histitem(parser) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…