diff options
Diffstat (limited to 'tests/unit/utils/test_log.py')
-rw-r--r-- | tests/unit/utils/test_log.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/unit/utils/test_log.py b/tests/unit/utils/test_log.py index 3e3243e48..6b770ed44 100644 --- a/tests/unit/utils/test_log.py +++ b/tests/unit/utils/test_log.py @@ -255,16 +255,14 @@ class TestInitLog: with pytest.raises(PendingDeprecationWarning): warnings.warn("test warning", PendingDeprecationWarning) - -class TestInitFromConfig: - @pytest.mark.parametrize('cli, conf, expected', [ (None, 'info', logging.INFO), (None, 'warning', logging.WARNING), ('info', 'warning', logging.INFO), ('warning', 'info', logging.WARNING), ]) - def test_console(self, cli, conf, expected, args, config_stub): + def test_init_from_config_console(self, cli, conf, expected, args, + config_stub): args.debug = False args.loglevel = cli log.init_log(args) @@ -279,7 +277,7 @@ class TestInitFromConfig: ('info', logging.INFO), ('critical', logging.CRITICAL), ]) - def test_ram(self, conf, expected, args, config_stub): + def test_init_from_config_ram(self, conf, expected, args, config_stub): args.debug = False log.init_log(args) @@ -287,7 +285,7 @@ class TestInitFromConfig: log.init_from_config(config_stub.val) assert log.ram_handler.level == expected - def test_consistent_default(self, config_stub): + def test_init_from_config_consistent_default(self, config_stub): """Ensure config defaults are consistent with the builtin defaults.""" args = qutebrowser.get_argparser().parse_args([]) log.init_log(args) |