Fix lint.
This commit is contained in:
parent
dff4c37f54
commit
e909b1f36d
@ -22,12 +22,10 @@
|
||||
import collections
|
||||
|
||||
import pytest
|
||||
from PyQt5.QtGui import QFont, QColor
|
||||
from PyQt5.QtWidgets import QTabBar, QTabWidget
|
||||
from PyQt5.QtNetwork import (QNetworkCookieJar, QAbstractNetworkCache,
|
||||
QNetworkCacheMetaData)
|
||||
|
||||
from qutebrowser.browser import commands, cookies
|
||||
from qutebrowser.browser import commands
|
||||
from qutebrowser.mainwindow import tabbedbrowser
|
||||
from qutebrowser.utils import objreg
|
||||
from qutebrowser.keyinput import modeman
|
||||
|
@ -278,10 +278,12 @@ def message_mock(monkeypatch):
|
||||
return MessageMock(monkeypatch)
|
||||
|
||||
|
||||
FakeWindow = collections.namedtuple('FakeWindow', ['registry'])
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def win_registry():
|
||||
"""Fixture providing a window registry for win_id 0."""
|
||||
FakeWindow = collections.namedtuple('FakeWindow', ['registry'])
|
||||
registry = objreg.ObjectRegistry()
|
||||
window = FakeWindow(registry)
|
||||
objreg.window_registry[0] = window
|
||||
|
Loading…
Reference in New Issue
Block a user