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

Function test_get

tests/unittests/agents/test_live_request_queue.py:62–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60
61@pytest.mark.asyncio
62async def test_get():
63 queue = LiveRequestQueue()
64 res = MagicMock(spec=types.Content)
65
66 with patch.object(queue._queue, "get", return_value=res) as mock_get:
67 result = await queue.get()
68
69 assert result == res
70 mock_get.assert_called_once()

Callers

nothing calls this directly

Calls 4

getMethod · 0.95
LiveRequestQueueClass · 0.90
objectMethod · 0.80
assert_called_onceMethod · 0.80

Tested by

no test coverage detected