We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c90d3c commit 0419f25Copy full SHA for 0419f25
tests/test_cmd2.py
@@ -1787,3 +1787,18 @@ def test_readline_remove_history_item(base_app):
1787
assert readline.get_current_history_length() == 1
1788
readline.remove_history_item(0)
1789
assert readline.get_current_history_length() == 0
1790
+
1791
+def test_onecmd_raw_str_continue(base_app):
1792
+ line = "help"
1793
+ stop = base_app.onecmd(line)
1794
+ out = base_app.stdout.buffer
1795
+ assert not stop
1796
+ assert out.strip() == BASE_HELP.strip()
1797
1798
+def test_onecmd_raw_str_quit(base_app):
1799
+ line = "quit"
1800
1801
1802
+ assert stop
1803
+ assert out == ''
1804
0 commit comments