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