Home / Function/ test_custom_event_root_dispatch() — langchain Function Reference

test_custom_event_root_dispatch() — langchain Function Reference

Architecture documentation for the test_custom_event_root_dispatch() function in test_runnable_events_v2.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  fe6c93c7_4ea1_0caf_cda0_8e4787def982["test_custom_event_root_dispatch()"]
  33c02978_2077_5819_7048_bc2a81e80625["test_runnable_events_v2.py"]
  fe6c93c7_4ea1_0caf_cda0_8e4787def982 -->|defined in| 33c02978_2077_5819_7048_bc2a81e80625
  style fe6c93c7_4ea1_0caf_cda0_8e4787def982 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/runnables/test_runnable_events_v2.py lines 2776–2784

async def test_custom_event_root_dispatch() -> None:
    """Test adhoc event in a nested chain."""
    # This just tests that nothing breaks on the path.
    # It shouldn't do anything at the moment, since the tracer isn't configured
    # to handle adhoc events.

    # Expected behavior is that the event cannot be dispatched
    with pytest.raises(RuntimeError):
        await adispatch_custom_event("event1", {"x": 1})

Domain

Subdomains

Frequently Asked Questions

What does test_custom_event_root_dispatch() do?
test_custom_event_root_dispatch() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable_events_v2.py.
Where is test_custom_event_root_dispatch() defined?
test_custom_event_root_dispatch() is defined in libs/core/tests/unit_tests/runnables/test_runnable_events_v2.py at line 2776.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free