Break two long lines that were failing pylint.
This commit is contained in:
parent
f43f526c5b
commit
9578a3324e
@ -46,7 +46,8 @@ def whitelist_generator():
|
|||||||
for name, member in inspect.getmembers(rfc6266, inspect.isclass):
|
for name, member in inspect.getmembers(rfc6266, inspect.isclass):
|
||||||
for attr in ('grammar', 'regex'):
|
for attr in ('grammar', 'regex'):
|
||||||
if hasattr(member, attr):
|
if hasattr(member, attr):
|
||||||
yield 'qutebrowser.browser.webkit.rfc6266.{}.{}'.format(name, attr)
|
yield 'qutebrowser.browser.webkit.rfc6266.{}.{}'.format(name,
|
||||||
|
attr)
|
||||||
|
|
||||||
# PyQt properties
|
# PyQt properties
|
||||||
for attr in ('prompt_active', 'command_active', 'insert_active',
|
for attr in ('prompt_active', 'command_active', 'insert_active',
|
||||||
|
@ -276,7 +276,8 @@ class TestWebElementWrapper:
|
|||||||
@pytest.mark.parametrize('is_null, expected', [
|
@pytest.mark.parametrize('is_null, expected', [
|
||||||
(False, "<qutebrowser.browser.webkit.webelem.WebElementWrapper "
|
(False, "<qutebrowser.browser.webkit.webelem.WebElementWrapper "
|
||||||
"html='<fakeelem/>'>"),
|
"html='<fakeelem/>'>"),
|
||||||
(True, '<qutebrowser.browser.webkit.webelem.WebElementWrapper html=None>'),
|
(True, '<qutebrowser.browser.webkit.webelem.WebElementWrapper '
|
||||||
|
'html=None>'),
|
||||||
])
|
])
|
||||||
def test_repr(self, elem, is_null, expected):
|
def test_repr(self, elem, is_null, expected):
|
||||||
elem._elem.isNull.return_value = is_null
|
elem._elem.isNull.return_value = is_null
|
||||||
|
Loading…
Reference in New Issue
Block a user