Fix lint
This commit is contained in:
parent
d2ece6b542
commit
2649418c0b
@ -53,7 +53,8 @@ class MessageMock:
|
|||||||
self._caplog = caplog
|
self._caplog = caplog
|
||||||
self.messages = []
|
self.messages = []
|
||||||
|
|
||||||
def _handle(self, level, win_id, text, immediately=False, *, stack=None):
|
def _handle(self, level, win_id, text, immediately=False, *,
|
||||||
|
stack=None): # pylint: disable=unused-variable
|
||||||
log_levels = {
|
log_levels = {
|
||||||
Level.error: logging.ERROR,
|
Level.error: logging.ERROR,
|
||||||
Level.info: logging.INFO,
|
Level.info: logging.INFO,
|
||||||
|
@ -17,12 +17,14 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
|
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
# pylint: disable=unused-variable
|
||||||
|
|
||||||
"""Tests for qutebrowser.commands.cmdutils."""
|
"""Tests for qutebrowser.commands.cmdutils."""
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from qutebrowser.commands import cmdutils, cmdexc, argparser, command
|
from qutebrowser.commands import cmdutils, cmdexc, argparser, command
|
||||||
from qutebrowser.utils import usertypes, typing, objreg
|
from qutebrowser.utils import usertypes, typing
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
@ -100,8 +102,6 @@ class TestCheckExclusive:
|
|||||||
|
|
||||||
class TestRegister:
|
class TestRegister:
|
||||||
|
|
||||||
# pylint: disable=unused-variable
|
|
||||||
|
|
||||||
def test_simple(self):
|
def test_simple(self):
|
||||||
@cmdutils.register()
|
@cmdutils.register()
|
||||||
def fun():
|
def fun():
|
||||||
@ -319,8 +319,6 @@ class TestArgument:
|
|||||||
|
|
||||||
"""Test the @cmdutils.argument decorator."""
|
"""Test the @cmdutils.argument decorator."""
|
||||||
|
|
||||||
# pylint: disable=unused-variable
|
|
||||||
|
|
||||||
def test_invalid_argument(self):
|
def test_invalid_argument(self):
|
||||||
with pytest.raises(ValueError) as excinfo:
|
with pytest.raises(ValueError) as excinfo:
|
||||||
@cmdutils.argument('foo')
|
@cmdutils.argument('foo')
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
import configparser
|
import configparser
|
||||||
import argparse
|
|
||||||
import collections
|
import collections
|
||||||
import shutil
|
import shutil
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
Loading…
Reference in New Issue
Block a user