Fix lint
This commit is contained in:
parent
b0fa821bc3
commit
cc11af5e28
@ -31,7 +31,6 @@ from qutebrowser.keyinput import modeman
|
|||||||
from qutebrowser.mainwindow import tabwidget
|
from qutebrowser.mainwindow import tabwidget
|
||||||
from qutebrowser.browser import signalfilter
|
from qutebrowser.browser import signalfilter
|
||||||
from qutebrowser.browser import tab as tabmod
|
from qutebrowser.browser import tab as tabmod
|
||||||
from qutebrowser.browser.webkit import webkittab
|
|
||||||
from qutebrowser.utils import (log, usertypes, utils, qtutils, objreg,
|
from qutebrowser.utils import (log, usertypes, utils, qtutils, objreg,
|
||||||
urlutils, message)
|
urlutils, message)
|
||||||
|
|
||||||
|
@ -20,15 +20,11 @@
|
|||||||
|
|
||||||
"""Test Progress widget."""
|
"""Test Progress widget."""
|
||||||
|
|
||||||
from collections import namedtuple
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from qutebrowser.mainwindow.statusbar.progress import Progress
|
from qutebrowser.mainwindow.statusbar.progress import Progress
|
||||||
from qutebrowser.utils import usertypes
|
from qutebrowser.utils import usertypes
|
||||||
|
|
||||||
from tests.helpers import stubs
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def progress_widget(qtbot, monkeypatch, config_stub):
|
def progress_widget(qtbot, monkeypatch, config_stub):
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
"""Test Statusbar url."""
|
"""Test Statusbar url."""
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import collections
|
|
||||||
|
|
||||||
from qutebrowser.utils import usertypes
|
from qutebrowser.utils import usertypes
|
||||||
from qutebrowser.mainwindow.statusbar import url
|
from qutebrowser.mainwindow.statusbar import url
|
||||||
@ -118,7 +117,7 @@ def test_on_load_status_changed(url_widget, status, expected):
|
|||||||
(url.UrlType.success, QUrl('http://reddit.com/r/linux')),
|
(url.UrlType.success, QUrl('http://reddit.com/r/linux')),
|
||||||
(url.UrlType.success_https, QUrl('www.google.com')),
|
(url.UrlType.success_https, QUrl('www.google.com')),
|
||||||
(url.UrlType.success_https, QUrl('https://supersecret.gov/nsa/files.txt')),
|
(url.UrlType.success_https, QUrl('https://supersecret.gov/nsa/files.txt')),
|
||||||
(url.UrlType.warn, QUrl('www.shadysite.org/some/path/to/file/with/issues.htm')),
|
(url.UrlType.warn, QUrl('www.shadysite.org/some/file/with/issues.htm')),
|
||||||
(url.UrlType.error, QUrl('invalid::/url')),
|
(url.UrlType.error, QUrl('invalid::/url')),
|
||||||
])
|
])
|
||||||
def test_on_tab_changed(url_widget, stubs, qapp, load_status, qurl):
|
def test_on_tab_changed(url_widget, stubs, qapp, load_status, qurl):
|
||||||
|
Loading…
Reference in New Issue
Block a user