summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2022-06-21 14:14:03 +0200
committerFlorian Bruhin <me@the-compiler.org>2022-06-21 14:14:13 +0200
commitfc5e764673bbb434e82d3fb3f8eb7bedf3326f88 (patch)
tree6ea96715f9dc7032cc0d431b7a2ede7abd1ec6c9
parent20cfc148b45bbf9f59a92740b5b17baa6a98c35c (diff)
downloadqutebrowser-fc5e764673bbb434e82d3fb3f8eb7bedf3326f88.tar.gz
qutebrowser-fc5e764673bbb434e82d3fb3f8eb7bedf3326f88.zip
notification: Skip on QtWebKit
(cherry picked from commit ce7443219cf4325a8e7c556c8a05c22eb6455e02)
-rw-r--r--tests/unit/browser/test_notification.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/browser/test_notification.py b/tests/unit/browser/test_notification.py
index e1a78f411..9d41cc05d 100644
--- a/tests/unit/browser/test_notification.py
+++ b/tests/unit/browser/test_notification.py
@@ -28,8 +28,8 @@ import pytest
from PyQt5.QtCore import pyqtSignal, pyqtSlot, QUrl, QObject
from PyQt5.QtGui import QImage
from PyQt5.QtDBus import QDBusMessage, QDBus, QDBusConnection
-if TYPE_CHECKING:
- from PyQt5.QtWebEngineCore import QWebEngineNotification
+pytest.importorskip("PyQt5.QtWebEngineCore")
+from PyQt5.QtWebEngineCore import QWebEngineNotification
from qutebrowser.config import configdata
from qutebrowser.misc import objects
@@ -181,7 +181,7 @@ class FakeNotificationAdapter(notification.AbstractNotificationAdapter):
def present(
self,
- qt_notification: "QWebEngineNotification", *,
+ qt_notification: QWebEngineNotification, *,
replaces_id: Optional[int],
) -> int:
self.presented.append(qt_notification)