mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-12-19 11:52:19 -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
@@ -30,7 +30,7 @@ from google.genai import types
|
||||
import pytest
|
||||
import pytest_mock
|
||||
from typing_extensions import override
|
||||
from .. import utils
|
||||
from .. import testing_utils
|
||||
|
||||
|
||||
def _before_agent_callback_noop(callback_context: CallbackContext) -> None:
|
||||
@@ -398,7 +398,7 @@ async def test_before_agent_callbacks_chain(
|
||||
request.function.__name__, agent
|
||||
)
|
||||
result = [e async for e in agent.run_async(parent_ctx)]
|
||||
assert utils.simplify_events(result) == [
|
||||
assert testing_utils.simplify_events(result) == [
|
||||
(f'{request.function.__name__}_test_agent', response)
|
||||
for response in expected_responses
|
||||
]
|
||||
@@ -459,7 +459,7 @@ async def test_after_agent_callbacks_chain(
|
||||
request.function.__name__, agent
|
||||
)
|
||||
result = [e async for e in agent.run_async(parent_ctx)]
|
||||
assert utils.simplify_events(result) == [
|
||||
assert testing_utils.simplify_events(result) == [
|
||||
(f'{request.function.__name__}_test_agent', response)
|
||||
for response in expected_responses
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user