From f2d850fd874032a9c88f77be9479020b8285d392 Mon Sep 17 00:00:00 2001 From: Andrei Neagu Date: Wed, 20 May 2020 17:34:41 +0200 Subject: [PATCH] test catches unawaited coroutine --- tests/asyncio/test_asyncio_pubsub_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/asyncio/test_asyncio_pubsub_manager.py b/tests/asyncio/test_asyncio_pubsub_manager.py index 35bdba8..8248334 100644 --- a/tests/asyncio/test_asyncio_pubsub_manager.py +++ b/tests/asyncio/test_asyncio_pubsub_manager.py @@ -118,7 +118,7 @@ class TestAsyncPubSubManager(unittest.TestCase): def test_can_disconnect(self): self.pm.connect('123', '/') - self.assertTrue(_run(self.pm.can_disconnect('123', '/'))) + self.assertTrue(_run(self.pm.can_disconnect('123', '/')) is True) _run(self.pm.can_disconnect('123', '/foo')) self.pm._publish.mock.assert_called_once_with( {'method': 'disconnect', 'sid': '123', 'namespace': '/foo'})