From 780ac3f4c2bb5bd53d63531215f28dd07613d271 Mon Sep 17 00:00:00 2001 From: Ryan Roden-Corrent Date: Fri, 1 Dec 2017 11:34:47 -0500 Subject: [PATCH] Remove needles quteproc/server fixture deps. A few step definitions listed these in the parameters although they were unused. --- tests/end2end/features/test_editor_bdd.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/end2end/features/test_editor_bdd.py b/tests/end2end/features/test_editor_bdd.py index 983ded7ba..ec43c8477 100644 --- a/tests/end2end/features/test_editor_bdd.py +++ b/tests/end2end/features/test_editor_bdd.py @@ -49,7 +49,7 @@ def set_up_editor_replacement(quteproc, server, tmpdir, text, replacement): @bdd.when(bdd.parsers.parse('I set up a fake editor returning "{text}"')) -def set_up_editor(quteproc, server, tmpdir, text): +def set_up_editor(quteproc, tmpdir, text): """Set up editor.command to a small python script inserting a text.""" script = tmpdir / 'script.py' script.write(textwrap.dedent(""" @@ -63,13 +63,13 @@ def set_up_editor(quteproc, server, tmpdir, text): @bdd.when(bdd.parsers.parse('I set up a fake editor returning empty text')) -def set_up_editor_empty(quteproc, server, tmpdir): +def set_up_editor_empty(quteproc, tmpdir): """Set up editor.command to a small python script inserting empty text.""" - set_up_editor(quteproc, server, tmpdir, "") + set_up_editor(quteproc, tmpdir, "") @bdd.when(bdd.parsers.parse('I set up a fake editor that waits')) -def set_up_editor_wait(quteproc, server, tmpdir): +def set_up_editor_wait(quteproc, tmpdir): """Set up editor.command to a small python script inserting a text.""" pidfile = tmpdir / 'editor_pid' script = tmpdir / 'script.py' @@ -90,7 +90,7 @@ def set_up_editor_wait(quteproc, server, tmpdir): @bdd.when(bdd.parsers.parse('I kill the waiting editor')) -def kill_editor_wait(quteproc, server, tmpdir): +def kill_editor_wait(tmpdir): """Kill the waiting editor.""" pidfile = tmpdir / 'editor_pid' pid = int(pidfile.read())