diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-05-28 15:46:35 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-05-28 15:54:56 +0200 |
commit | 98b4c80634f2415bfec9a02ceec643d80fc2622b (patch) | |
tree | 1a14261a4eb72a797dfad47e43da97224b5cd888 /tests | |
parent | 7afb9cfd7a8ad8581e88f16fd7db8f92c9e091ed (diff) | |
download | qutebrowser-98b4c80634f2415bfec9a02ceec643d80fc2622b.tar.gz qutebrowser-98b4c80634f2415bfec9a02ceec643d80fc2622b.zip |
log: Handle JSONLogger in change_console_formatter
Fixes #6482
(cherry picked from commit 40477e826c9ec73a8f99177df645094be3ef5ed3)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/end2end/test_invocations.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/end2end/test_invocations.py b/tests/end2end/test_invocations.py index 1ce22b7ea..076ebb2bd 100644 --- a/tests/end2end/test_invocations.py +++ b/tests/end2end/test_invocations.py @@ -743,3 +743,14 @@ def test_unavailable_backend(request, quteproc_new): message=('*qutebrowser tried to start with the Qt* backend but failed ' 'because * could not be imported.*')) line.expected = True + + +def test_json_logging_without_debug(request, quteproc_new): + args = _base_args(request.config) + ['--temp-basedir', ':quit'] + args.remove('--debug') + args.remove('about:blank') # interfers with :quit at the end + + quteproc_new.exit_expected = True + quteproc_new.start(args) + assert not quteproc_new.is_running() + assert not quteproc_new.captured_log |