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

Method setup_method

tests/unittests/test_runners.py:935–946  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

933 """Tests for Runner with plugins."""
934
935 def setup_method(self):
936 self.plugin = MockPlugin()
937 self.session_service = InMemorySessionService()
938 self.artifact_service = InMemoryArtifactService()
939 self.root_agent = MockLlmAgent("root_agent")
940 self.runner = Runner(
941 app_name="test_app",
942 agent=MockLlmAgent("test_agent"),
943 session_service=self.session_service,
944 artifact_service=self.artifact_service,
945 plugins=[self.plugin],
946 )
947
948 async def run_test(self, original_user_input="Hello") -> list[Event]:
949 """Prepares the test by creating a session and running the runner."""

Callers

nothing calls this directly

Calls 5

RunnerClass · 0.90
MockLlmAgentClass · 0.85
MockPluginClass · 0.70

Tested by

no test coverage detected