diff options
Diffstat (limited to 'tests/end2end/features/test_urlmarks_bdd.py')
-rw-r--r-- | tests/end2end/features/test_urlmarks_bdd.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/end2end/features/test_urlmarks_bdd.py b/tests/end2end/features/test_urlmarks_bdd.py index 1b21098cd..6d4172085 100644 --- a/tests/end2end/features/test_urlmarks_bdd.py +++ b/tests/end2end/features/test_urlmarks_bdd.py @@ -4,6 +4,7 @@ import os.path +import pytest import pytest_bdd as bdd from helpers import testutils @@ -11,6 +12,14 @@ from helpers import testutils bdd.scenarios('urlmarks.feature') +@pytest.fixture(autouse=True) +def clear_marks(quteproc): + """Clear all existing marks between tests.""" + yield + quteproc.send_cmd(':quickmark-del --all') + quteproc.send_cmd(':bookmark-del --all') + + def _check_marks(quteproc, quickmarks, expected, contains): """Make sure the given line does (not) exist in the bookmarks. |