mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-12-18 19:32:21 -06:00
Move public_utils to utils in tests
Renamed conflicting utils.py as testing_utils.py PiperOrigin-RevId: 761715808
This commit is contained in:
committed by
Copybara-Service
parent
09cb128cf9
commit
41b33d4a0a
@@ -21,7 +21,7 @@ from google.adk.models.base_llm import LlmRequest
|
||||
from google.genai import types
|
||||
import pytest
|
||||
|
||||
from ... import utils
|
||||
from ... import testing_utils
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@@ -31,7 +31,7 @@ async def test_no_examples():
|
||||
config=types.GenerateContentConfig(system_instruction=""),
|
||||
)
|
||||
agent = Agent(model="gemini-1.5-flash", name="agent", examples=[])
|
||||
invocation_context = await utils.create_invocation_context(
|
||||
invocation_context = await testing_utils.create_invocation_context(
|
||||
agent=agent, user_content=""
|
||||
)
|
||||
|
||||
@@ -69,7 +69,7 @@ async def test_agent_examples():
|
||||
name="agent",
|
||||
examples=example_list,
|
||||
)
|
||||
invocation_context = await utils.create_invocation_context(
|
||||
invocation_context = await testing_utils.create_invocation_context(
|
||||
agent=agent, user_content="test"
|
||||
)
|
||||
|
||||
@@ -122,7 +122,7 @@ async def test_agent_base_example_provider():
|
||||
name="agent",
|
||||
examples=provider,
|
||||
)
|
||||
invocation_context = await utils.create_invocation_context(
|
||||
invocation_context = await testing_utils.create_invocation_context(
|
||||
agent=agent, user_content="test"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user