MCPcopy Index your code
hub / github.com/reactive-python/reactpy / test_dispatch

Function test_dispatch

src/py/reactpy/tests/test_core/test_serve.py:96–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94
95@pytest.mark.skipif(sys.version_info < (3, 11), reason="ExceptionGroup not available")
96async def test_dispatch():
97 events, expected_model = make_events_and_expected_model()
98 changes, send, recv = make_send_recv_callbacks(events)
99 with pytest.raises(ExceptionGroup):
100 await asyncio.wait_for(serve_layout(Layout(Counter()), send, recv), 1)
101 assert_changes_produce_expected_model(changes, expected_model)
102
103
104async def test_dispatcher_handles_more_than_one_event_at_a_time():

Callers

nothing calls this directly

Calls 6

serve_layoutFunction · 0.90
LayoutClass · 0.90
make_send_recv_callbacksFunction · 0.85
CounterFunction · 0.70

Tested by

no test coverage detected