MCPcopy
hub / github.com/django/django / test_asend_only_async_receivers

Method test_asend_only_async_receivers

tests/signals/tests.py:633–639  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

631 )
632
633 async def test_asend_only_async_receivers(self):
634 async_handler = AsyncHandler()
635 signal = dispatch.Signal()
636 signal.connect(async_handler)
637
638 result = await signal.asend(self.__class__)
639 self.assertEqual(result, [(async_handler, 1)])
640
641 async def test_asend_robust_only_async_receivers(self):
642 async_handler = AsyncHandler()

Callers

nothing calls this directly

Calls 3

connectMethod · 0.95
asendMethod · 0.95
AsyncHandlerClass · 0.85

Tested by

no test coverage detected