From f07c405cee19a4549e897a07303cf406dcc56a66 Mon Sep 17 00:00:00 2001 From: Pol Van Aubel Date: Mon, 28 Oct 2019 22:18:49 +0100 Subject: Fix tests to reflect new messages. --- tests/commands/test_global.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/commands/test_global.py b/tests/commands/test_global.py index eb11555d..07b0df2a 100644 --- a/tests/commands/test_global.py +++ b/tests/commands/test_global.py @@ -134,14 +134,18 @@ class TestExternalCommand(unittest.TestCase): cmd = g_commands.ExternalCommand( u"test -t 0", stdin=u'0', refocus=False) await cmd.apply(ui) - ui.notify.assert_called_once_with('', priority='error') + ui.notify.assert_called_once_with( + 'editor has exited with error code 1 -- No stderr output', + priority='error') @utilities.async_test async def test_no_spawn_failure(self): ui = utilities.make_ui() cmd = g_commands.ExternalCommand(u'false', refocus=False) await cmd.apply(ui) - ui.notify.assert_called_once_with('', priority='error') + ui.notify.assert_called_once_with( + 'editor has exited with error code 1 -- No stderr output', + priority='error') @utilities.async_test @mock.patch( @@ -173,7 +177,9 @@ class TestExternalCommand(unittest.TestCase): ui = utilities.make_ui() cmd = g_commands.ExternalCommand(u'false', refocus=False, spawn=True) await cmd.apply(ui) - ui.notify.assert_called_once_with('', priority='error') + ui.notify.assert_called_once_with( + 'editor has exited with error code 1 -- No stderr output', + priority='error') class TestCallCommand(unittest.TestCase): -- cgit v1.2.3