From a3a43063062ceb84f11f1459bbbd56d1374f1201 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 21 Jun 2022 13:02:05 +0200 Subject: notification: Fix marks in tests (cherry picked from commit 8067c0979fd7e8eed2437bda212fb55ee82e77f0) --- tests/unit/browser/test_notification.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/unit/browser/test_notification.py b/tests/unit/browser/test_notification.py index 6aef71abf..e1a78f411 100644 --- a/tests/unit/browser/test_notification.py +++ b/tests/unit/browser/test_notification.py @@ -36,8 +36,12 @@ from qutebrowser.misc import objects from qutebrowser.browser.webengine import notification -pytestmark = [pytest.mark.qtwebengine_notifications] -dbus_test = pytest.mark.linux +pytestmark = [ + pytest.mark.qtwebengine_notifications, + # 5.13 only supports the default presenter + pytest.mark.skipif(not notification._notifications_supported(), + reason="Notifications not supported") +] class FakeDBusMessage: @@ -189,7 +193,7 @@ class FakeNotificationAdapter(notification.AbstractNotificationAdapter): raise NotImplementedError -@dbus_test +@pytest.mark.linux class TestDBus: NO_REPLY_ERROR = FakeDBusMessage.create_error("org.freedesktop.DBus.Error.NoReply") -- cgit v1.2.3-54-g00ecf