Fix lint
This commit is contained in:
parent
b9bb515b3b
commit
ae73215724
@ -26,8 +26,7 @@ import pytest
|
||||
from PyQt5.QtCore import QObject, QUrl
|
||||
from PyQt5.QtGui import QColor
|
||||
|
||||
from qutebrowser.config import (config, configdata, configexc, configfiles,
|
||||
configutils)
|
||||
from qutebrowser.config import config, configdata, configexc, configutils
|
||||
from qutebrowser.utils import usertypes, urlmatch
|
||||
from qutebrowser.misc import objects
|
||||
|
||||
@ -417,7 +416,6 @@ class TestConfig:
|
||||
conf.set_obj(name, False, pattern=pattern)
|
||||
assert conf.get(name, url=QUrl('https://example.com/')) is True
|
||||
|
||||
|
||||
@pytest.mark.parametrize('value', [{}, {'normal': {'a': 'nop'}}])
|
||||
def test_get_bindings(self, config_stub, conf, value):
|
||||
"""Test conf.get() with bindings which have missing keys."""
|
||||
|
@ -27,7 +27,7 @@ import pytest
|
||||
from PyQt5.QtCore import QSettings
|
||||
|
||||
from qutebrowser.config import (config, configfiles, configexc, configdata,
|
||||
configtypes, configutils)
|
||||
configtypes)
|
||||
from qutebrowser.utils import utils, usertypes
|
||||
|
||||
|
||||
|
@ -40,6 +40,7 @@ def opt():
|
||||
default='default value', backends=None,
|
||||
raw_backends=None, description=None)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def pattern():
|
||||
return urlmatch.UrlPattern('*://www.example.com/')
|
||||
|
Loading…
Reference in New Issue
Block a user