summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPol Van Aubel <dev@polvanaubel.com>2019-10-28 22:18:49 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2019-11-02 16:24:41 +0000
commitf07c405cee19a4549e897a07303cf406dcc56a66 (patch)
treec0edb40964b655bb93c430c535e4442d035686fb /tests
parented78f926c3495b0c89ccaf103dcc4be50be6395f (diff)
Fix tests to reflect new messages.
Diffstat (limited to 'tests')
-rw-r--r--tests/commands/test_global.py12
1 files changed, 9 insertions, 3 deletions
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):