summaryrefslogtreecommitdiff
path: root/tests/commands/global_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/commands/global_test.py')
-rw-r--r--tests/commands/global_test.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/commands/global_test.py b/tests/commands/global_test.py
index 1122b3f7..48ddd34d 100644
--- a/tests/commands/global_test.py
+++ b/tests/commands/global_test.py
@@ -246,14 +246,15 @@ class TestExternalCommand(unittest.TestCase):
class TestCallCommand(unittest.TestCase):
- def test_synchronous_call(self):
+ @utilities.async_test
+ async def test_synchronous_call(self):
ui = mock.Mock()
cmd = g_commands.CallCommand('ui()')
- cmd.apply(ui)
+ await cmd.apply(ui)
ui.assert_called_once()
- @unittest.expectedFailure
- def test_async_call(self):
+ @utilities.async_test
+ async def test_async_call(self):
async def func(obj):
obj()
@@ -264,5 +265,5 @@ class TestCallCommand(unittest.TestCase):
with mock.patch('alot.commands.globals.settings.hooks', hooks):
cmd = g_commands.CallCommand('hooks.func(ui)')
- cmd.apply(ui)
+ await cmd.apply(ui)
ui.assert_called_once()