From 2fb5de8bd307b83864f0ed0111c46341652ba015 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 27 May 2016 00:12:53 +0200 Subject: [PATCH] test_insert_mode: Always set fake clipboard Otherwise if we only run a keypress test, the fake clipboard won't be activated and thus the subsequent :yank-selected would write to the real clipboard. --- tests/integration/test_insert_mode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/test_insert_mode.py b/tests/integration/test_insert_mode.py index e4d6fb669..afed99aef 100644 --- a/tests/integration/test_insert_mode.py +++ b/tests/integration/test_insert_mode.py @@ -40,11 +40,11 @@ def test_insert_mode(file_name, source, input_text, auto_insert, quteproc): quteproc.set_setting('input', 'auto-insert-mode', auto_insert) quteproc.send_cmd(':hint all') quteproc.send_cmd(':follow-hint a') + quteproc.send_cmd(':debug-set-fake-clipboard') if source == 'keypress': quteproc.press_keys(input_text) elif source == 'clipboard': - quteproc.send_cmd(':debug-set-fake-clipboard') quteproc.send_cmd(':debug-set-fake-clipboard "{}"'.format(input_text)) quteproc.send_cmd(':paste-primary')