From 28d7c5e204da79f3a1b929311ae6e00559d34f72 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 24 Nov 2017 07:25:10 +0100 Subject: [PATCH] Fix lint --- qutebrowser/mainwindow/statusbar/command.py | 1 + tests/end2end/features/test_editor_bdd.py | 1 + 2 files changed, 2 insertions(+) diff --git a/qutebrowser/mainwindow/statusbar/command.py b/qutebrowser/mainwindow/statusbar/command.py index affb1a23b..af2dc3dc9 100644 --- a/qutebrowser/mainwindow/statusbar/command.py +++ b/qutebrowser/mainwindow/statusbar/command.py @@ -176,6 +176,7 @@ class Command(misc.MinimalLineEditMixin, misc.CommandLineEdit): ed = editor.ExternalEditor(parent=self) def callback(text): + """Set the commandline to the edited text.""" if not text or text[0] not in modeparsers.STARTCHARS: message.error('command must start with one of {}' .format(modeparsers.STARTCHARS)) diff --git a/tests/end2end/features/test_editor_bdd.py b/tests/end2end/features/test_editor_bdd.py index 3133bea40..f66b94f77 100644 --- a/tests/end2end/features/test_editor_bdd.py +++ b/tests/end2end/features/test_editor_bdd.py @@ -59,6 +59,7 @@ def set_up_editor(quteproc, server, tmpdir, text): editor = json.dumps([sys.executable, str(script), '{}']) quteproc.set_setting('editor.command', editor) + @bdd.when(bdd.parsers.parse('I set up a fake editor returning empty text')) def set_up_editor_empty(quteproc, server, tmpdir): """Set up editor.command to a small python script inserting empty text."""