diff --git a/tests/helpers/messagemock.py b/tests/helpers/messagemock.py index 2696c4783..cf27cb8f1 100644 --- a/tests/helpers/messagemock.py +++ b/tests/helpers/messagemock.py @@ -53,7 +53,8 @@ class MessageMock: self._caplog = caplog 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 = { Level.error: logging.ERROR, Level.info: logging.INFO, diff --git a/tests/unit/commands/test_cmdutils.py b/tests/unit/commands/test_cmdutils.py index b32a8ed63..e03bc2b1e 100644 --- a/tests/unit/commands/test_cmdutils.py +++ b/tests/unit/commands/test_cmdutils.py @@ -17,12 +17,14 @@ # You should have received a copy of the GNU General Public License # along with qutebrowser. If not, see . +# pylint: disable=unused-variable + """Tests for qutebrowser.commands.cmdutils.""" import pytest 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) @@ -100,8 +102,6 @@ class TestCheckExclusive: class TestRegister: - # pylint: disable=unused-variable - def test_simple(self): @cmdutils.register() def fun(): @@ -319,8 +319,6 @@ class TestArgument: """Test the @cmdutils.argument decorator.""" - # pylint: disable=unused-variable - def test_invalid_argument(self): with pytest.raises(ValueError) as excinfo: @cmdutils.argument('foo') diff --git a/tests/unit/config/test_config.py b/tests/unit/config/test_config.py index c7d60d0f9..9bd7e2a25 100644 --- a/tests/unit/config/test_config.py +++ b/tests/unit/config/test_config.py @@ -21,7 +21,6 @@ import os import os.path import configparser -import argparse import collections import shutil from unittest import mock