summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-05-28 15:46:35 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-05-28 15:46:35 +0200
commit40477e826c9ec73a8f99177df645094be3ef5ed3 (patch)
treed223a8df722f237ce3d64e6da4f7a75f8958d394 /tests
parent1400415c0c87248ad94cbfd3514fc6828cb92850 (diff)
downloadqutebrowser-40477e826c9ec73a8f99177df645094be3ef5ed3.tar.gz
qutebrowser-40477e826c9ec73a8f99177df645094be3ef5ed3.zip
log: Handle JSONLogger in change_console_formatter
Fixes #6482
Diffstat (limited to 'tests')
-rw-r--r--tests/end2end/test_invocations.py11
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