Remove needles quteproc/server fixture deps.
A few step definitions listed these in the parameters although they were unused.
This commit is contained in:
parent
1102ae4d7e
commit
780ac3f4c2
@ -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}"'))
|
@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."""
|
"""Set up editor.command to a small python script inserting a text."""
|
||||||
script = tmpdir / 'script.py'
|
script = tmpdir / 'script.py'
|
||||||
script.write(textwrap.dedent("""
|
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'))
|
@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.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'))
|
@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."""
|
"""Set up editor.command to a small python script inserting a text."""
|
||||||
pidfile = tmpdir / 'editor_pid'
|
pidfile = tmpdir / 'editor_pid'
|
||||||
script = tmpdir / 'script.py'
|
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'))
|
@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."""
|
"""Kill the waiting editor."""
|
||||||
pidfile = tmpdir / 'editor_pid'
|
pidfile = tmpdir / 'editor_pid'
|
||||||
pid = int(pidfile.read())
|
pid = int(pidfile.read())
|
||||||
|
Loading…
Reference in New Issue
Block a user