Remove redundant "Given a new tmpdir" step
With the (tmpdir) replacement we'll get a temporary directory no matter what, so this is unnecessary.
This commit is contained in:
parent
cd4eff364a
commit
fce825f9df
@ -340,7 +340,6 @@ Feature: Various utility commands.
|
|||||||
Then no crash should happen
|
Then no crash should happen
|
||||||
|
|
||||||
Scenario: print pdf
|
Scenario: print pdf
|
||||||
Given a new tmpdir
|
|
||||||
When I open data/hello.txt
|
When I open data/hello.txt
|
||||||
And I run :print --pdf (tmpdir)/hello.pdf
|
And I run :print --pdf (tmpdir)/hello.pdf
|
||||||
And I wait for "Print to file: *" in the log or skip the test
|
And I wait for "Print to file: *" in the log or skip the test
|
||||||
|
@ -75,11 +75,6 @@ def check_cookie(quteproc, name, value):
|
|||||||
assert data['cookies'][name] == value
|
assert data['cookies'][name] == value
|
||||||
|
|
||||||
|
|
||||||
@bdd.given(bdd.parsers.parse('a new tmpdir'))
|
|
||||||
def tmpdir(tmpdir_factory):
|
|
||||||
return tmpdir_factory.mktemp('tmpdir')
|
|
||||||
|
|
||||||
|
|
||||||
@bdd.then(bdd.parsers.parse('the file {filename} should exist in the tmpdir'))
|
@bdd.then(bdd.parsers.parse('the file {filename} should exist in the tmpdir'))
|
||||||
def file_exists(quteproc, tmpdir, filename):
|
def file_exists(quteproc, tmpdir, filename):
|
||||||
path = tmpdir / filename
|
path = tmpdir / filename
|
||||||
|
Loading…
Reference in New Issue
Block a user