MCPcopy Index your code
hub / github.com/google/adk-python / test_simple_node_output

Function test_simple_node_output

tests/unittests/runners/test_runner_node.py:133–139  ·  view source on GitHub ↗

Runner yields output from a simple BaseNode.

()

Source from the content-addressed store, hash-verified

131
132@pytest.mark.asyncio
133async def test_simple_node_output():
134 """Runner yields output from a simple BaseNode."""
135 events, _, _ = await _run_node(_EchoNode(name='echo'), message='hi')
136
137 output_events = [e for e in events if e.output is not None]
138 assert [e.output for e in output_events] == ['Echo: hi']
139 assert output_events[0].node_info.path == 'echo@1'
140
141
142@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

_run_nodeFunction · 0.85
_EchoNodeClass · 0.70

Tested by

no test coverage detected