tests: Add a quteproc test for quitting.

This commit is contained in:
Florian Bruhin 2016-01-17 20:46:55 +01:00
parent 6c5e158fc5
commit 6e390bdc01

View File

@ -69,6 +69,14 @@ def test_qt_log_ignore(qtbot, quteproc):
quteproc.send_cmd(':message-error "SpellCheck: test"')
def test_quteprocess_quitting(qtbot, quteproc_process):
"""When qutebrowser quits, after_test should fail."""
with qtbot.waitSignal(quteproc_process.proc.finished):
quteproc_process.send_cmd(':quit')
with pytest.raises(testprocess.ProcessExited):
quteproc_process.after_test()
@pytest.mark.parametrize('data, attrs', [
(
# Normal message