Fix lint
This commit is contained in:
parent
d2ece6b542
commit
2649418c0b
@ -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,
|
||||
|
@ -17,12 +17,14 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# 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')
|
||||
|
@ -21,7 +21,6 @@
|
||||
import os
|
||||
import os.path
|
||||
import configparser
|
||||
import argparse
|
||||
import collections
|
||||
import shutil
|
||||
from unittest import mock
|
||||
|
Loading…
Reference in New Issue
Block a user