test_custom_event_root_dispatch() — langchain Function Reference
Architecture documentation for the test_custom_event_root_dispatch() function in test_dispatch_custom_event.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD cbe24494_1843_9a8f_90b9_cb218e9216ac["test_custom_event_root_dispatch()"] f4cde4a2_4706_d7d1_26f9_82085d97a270["test_dispatch_custom_event.py"] cbe24494_1843_9a8f_90b9_cb218e9216ac -->|defined in| f4cde4a2_4706_d7d1_26f9_82085d97a270 style cbe24494_1843_9a8f_90b9_cb218e9216ac fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/callbacks/test_dispatch_custom_event.py lines 43–50
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):
dispatch_custom_event("event1", {"x": 1})
Domain
Subdomains
Source
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/callbacks/test_dispatch_custom_event.py.
Where is test_custom_event_root_dispatch() defined?
test_custom_event_root_dispatch() is defined in libs/core/tests/unit_tests/callbacks/test_dispatch_custom_event.py at line 43.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free