tests: Add a autouse fixture as workaround

This is a workaround for
https://github.com/pytest-dev/pytest/issues/1832
This commit is contained in:
Florian Bruhin 2016-08-22 06:50:00 +02:00
parent 80a3920aad
commit 853f4cd9d8

View File

@ -133,6 +133,12 @@ def qapp(qapp):
return qapp
@pytest.fixture(scope='function', autouse=True)
def bug_workaround():
# WORKAROUND for https://github.com/pytest-dev/pytest/issues/1832
pass
def pytest_addoption(parser):
parser.addoption('--qute-delay', action='store', default=0, type=int,
help="Delay between qutebrowser commands.")