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.
2 parents 19ebad9 + 1b67db0 commit 7944147Copy full SHA for 7944147
tests/test_cmd2.py
@@ -1739,3 +1739,12 @@ def test_parseline(base_app):
1739
assert command == 'command'
1740
assert args == "with 'partially completed quotes"
1741
assert line == statement.strip()
1742
+
1743
1744
+def test_readline_remove_history_item(base_app):
1745
+ from cmd2.rl_utils import readline
1746
+ assert readline.get_current_history_length() == 0
1747
+ readline.add_history('this is a test')
1748
+ assert readline.get_current_history_length() == 1
1749
+ readline.remove_history_item(0)
1750
0 commit comments