summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2022-06-21 13:02:05 +0200
committerFlorian Bruhin <me@the-compiler.org>2022-06-21 13:14:19 +0200
commita3a43063062ceb84f11f1459bbbd56d1374f1201 (patch)
tree30fc211c5ef779a76d20b7399a19545556f361fe
parent031538a6f9968fde1d050a85e8a8c9ff96bd4c8d (diff)
downloadqutebrowser-a3a43063062ceb84f11f1459bbbd56d1374f1201.tar.gz
qutebrowser-a3a43063062ceb84f11f1459bbbd56d1374f1201.zip
notification: Fix marks in tests
(cherry picked from commit 8067c0979fd7e8eed2437bda212fb55ee82e77f0)
-rw-r--r--tests/unit/browser/test_notification.py10
1 files 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")