Fix lint.

This commit is contained in:
Florian Bruhin 2015-08-16 23:20:30 +02:00
parent dff4c37f54
commit e909b1f36d
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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