diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-03-24 16:37:34 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-03-24 16:37:34 +0100 |
commit | a107ac2cfc15a8ca3f0b6e38f85c229424a600b0 (patch) | |
tree | 1ba2d30e424b17a816b1740cfa7277d512385f1d | |
parent | 069666bcd193f31cae68630a2d69d6c295631351 (diff) | |
download | qutebrowser-a107ac2cfc15a8ca3f0b6e38f85c229424a600b0.tar.gz qutebrowser-a107ac2cfc15a8ca3f0b6e38f85c229424a600b0.zip |
notifications: Don't depend on notificationserver for all tests
-rw-r--r-- | tests/end2end/features/test_notifications_bdd.py | 4 | ||||
-rw-r--r-- | tests/end2end/fixtures/quteprocess.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/end2end/features/test_notifications_bdd.py b/tests/end2end/features/test_notifications_bdd.py index 8638936d8..9bd3fd7e6 100644 --- a/tests/end2end/features/test_notifications_bdd.py +++ b/tests/end2end/features/test_notifications_bdd.py @@ -17,10 +17,14 @@ # You should have received a copy of the GNU General Public License # along with qutebrowser. If not, see <https://www.gnu.org/licenses/>. +import pytest import pytest_bdd as bdd bdd.scenarios('notifications.feature') +pytestmark = pytest.mark.usefixtures('notification_server') + + @bdd.given("the notification server supports body markup") def supports_body_markup(notification_server): notification_server.supports_body_markup = True diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index 067761534..ed12b86dc 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -1020,7 +1020,7 @@ def quteproc_process(qapp, server, request): @pytest.fixture -def quteproc(quteproc_process, server, request, notification_server): +def quteproc(quteproc_process, server, request): """Per-test qutebrowser fixture which uses the per-file process.""" request.node._quteproc_log = quteproc_process.captured_log quteproc_process.before_test() |