Browse Source

test catches unawaited coroutine

pull/488/head
Andrei Neagu 5 years ago
parent
commit
f2d850fd87
  1. 2
      tests/asyncio/test_asyncio_pubsub_manager.py

2
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'})

Loading…
Cancel
Save