summaryrefslogtreecommitdiff
path: root/tests/end2end/test_insert_mode.py
diff options
context:
space:
mode:
authorRyan Roden-Corrent <ryan@rcorre.net>2016-09-21 21:34:05 -0400
committerRyan Roden-Corrent <ryan@rcorre.net>2016-09-26 08:30:28 -0400
commit6fdd007dbb8da0cf95dffcce2c0c16a708e464d9 (patch)
tree3e6c07da39baefee72419e7f8c0653d815abba4f /tests/end2end/test_insert_mode.py
parentb49aa2d5359dd3004d3a02b68951ebf95dd7c78f (diff)
downloadqutebrowser-6fdd007dbb8da0cf95dffcce2c0c16a708e464d9.tar.gz
qutebrowser-6fdd007dbb8da0cf95dffcce2c0c16a708e464d9.zip
Simplify mode-checking in command.
Rather than maintaining separate _modes and _not_modes lists, just build a single _modes list in the constructor.
Diffstat (limited to 'tests/end2end/test_insert_mode.py')
-rw-r--r--tests/end2end/test_insert_mode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/end2end/test_insert_mode.py b/tests/end2end/test_insert_mode.py
index d08f1b161..cd57968ca 100644
--- a/tests/end2end/test_insert_mode.py
+++ b/tests/end2end/test_insert_mode.py
@@ -93,7 +93,7 @@ def test_auto_leave_insert_mode(quteproc):
quteproc.send_cmd(':paste-primary')
expected_message = ('paste-primary: This command is only allowed in '
- 'insert mode.')
+ 'insert mode, not caret.')
quteproc.mark_expected(category='message',
loglevel=logging.ERROR,
message=expected_message)