summaryrefslogtreecommitdiff
path: root/tests/test_history.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-09-09 03:06:21 -0400
committerGitHub <noreply@github.com>2020-09-09 03:06:21 -0400
commitc50def1eff00f7f44adcb911d215ace65d16aa8a (patch)
tree62575c664a651027cea415cea574454d1e4637ca /tests/test_history.py
parenta975432ea87b8bde7d879f6e0974dcaffedc5f78 (diff)
parent1a2095e5c373430e5aa4bda2ee24f65f4527a002 (diff)
downloadcmd2-git-c50def1eff00f7f44adcb911d215ace65d16aa8a.tar.gz
Merge pull request #991 from python-cmd2/read_input
Read input enhancements
Diffstat (limited to 'tests/test_history.py')
-rwxr-xr-xtests/test_history.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_history.py b/tests/test_history.py
index 6fa16ad8..86c52592 100755
--- a/tests/test_history.py
+++ b/tests/test_history.py
@@ -27,6 +27,7 @@ except ImportError:
#
def test_readline_remove_history_item(base_app):
from cmd2.rl_utils import readline
+ readline.clear_history()
assert readline.get_current_history_length() == 0
readline.add_history('this is a test')
assert readline.get_current_history_length() == 1