summaryrefslogtreecommitdiff
path: root/tests/unit/utils
diff options
context:
space:
mode:
authorRyan Roden-Corrent <ryan@rcorre.net>2020-05-30 08:00:06 -0400
committerRyan Roden-Corrent <ryan@rcorre.net>2020-05-30 08:00:06 -0400
commitb668034afa9dbbf5e0e847773d6edc1146dc5228 (patch)
tree5e5527ee46173ec0a93f608f18f2d9b98be5c5a2 /tests/unit/utils
parent682c9d1ba1719765f72a37c5ad26b5813d48621b (diff)
downloadqutebrowser-b668034afa9dbbf5e0e847773d6edc1146dc5228.tar.gz
qutebrowser-b668034afa9dbbf5e0e847773d6edc1146dc5228.zip
Fix flake8 and lint
Diffstat (limited to 'tests/unit/utils')
-rw-r--r--tests/unit/utils/test_log.py28
1 files changed, 13 insertions, 15 deletions
diff --git a/tests/unit/utils/test_log.py b/tests/unit/utils/test_log.py
index 2ced94c42..6b770ed44 100644
--- a/tests/unit/utils/test_log.py
+++ b/tests/unit/utils/test_log.py
@@ -255,13 +255,12 @@ class TestInitLog:
with pytest.raises(PendingDeprecationWarning):
warnings.warn("test warning", PendingDeprecationWarning)
- @pytest.mark.parametrize('cli, conf, expected',
- [
- (None, 'info', logging.INFO),
- (None, 'warning', logging.WARNING),
- ('info', 'warning', logging.INFO),
- ('warning', 'info', logging.WARNING),
- ])
+ @pytest.mark.parametrize('cli, conf, expected', [
+ (None, 'info', logging.INFO),
+ (None, 'warning', logging.WARNING),
+ ('info', 'warning', logging.INFO),
+ ('warning', 'info', logging.WARNING),
+ ])
def test_init_from_config_console(self, cli, conf, expected, args,
config_stub):
args.debug = False
@@ -272,13 +271,12 @@ class TestInitLog:
log.init_from_config(config_stub.val)
assert log.console_handler.level == expected
- @pytest.mark.parametrize('conf, expected',
- [
- ('vdebug', logging.VDEBUG),
- ('debug', logging.DEBUG),
- ('info', logging.INFO),
- ('critical', logging.CRITICAL),
- ])
+ @pytest.mark.parametrize('conf, expected', [
+ ('vdebug', logging.VDEBUG),
+ ('debug', logging.DEBUG),
+ ('info', logging.INFO),
+ ('critical', logging.CRITICAL),
+ ])
def test_init_from_config_ram(self, conf, expected, args, config_stub):
args.debug = False
log.init_log(args)
@@ -288,7 +286,7 @@ class TestInitLog:
assert log.ram_handler.level == expected
def test_init_from_config_consistent_default(self, config_stub):
- """Ensure config defaults are consistent with the builtin defaults"""
+ """Ensure config defaults are consistent with the builtin defaults."""
args = qutebrowser.get_argparser().parse_args([])
log.init_log(args)