From 2e5595b5c6868f22e820eea12900821601aa9061 Mon Sep 17 00:00:00 2001 From: Ryan Roden-Corrent Date: Fri, 29 Dec 2017 22:07:37 -0500 Subject: [PATCH] Update test_configcommands for new editor behavior. Now that the editor signals on save, the configcommands editing unittests need to emit the signal in the patch rather than relying on on_proc_closed to emit the signal. --- tests/unit/config/test_configcommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/config/test_configcommands.py b/tests/unit/config/test_configcommands.py index 92796e8e5..a376e19b9 100644 --- a/tests/unit/config/test_configcommands.py +++ b/tests/unit/config/test_configcommands.py @@ -330,7 +330,7 @@ class TestEdit: def _write_file(editor_self): with open(editor_self._filename, 'w', encoding='utf-8') as f: f.write(text) - editor_self.on_proc_closed(0, QProcess.NormalExit) + editor_self.file_updated.emit(text) return mocker.patch('qutebrowser.config.configcommands.editor.' 'ExternalEditor._start_editor', autospec=True,