chore: clean imports and restore test coverage
This commit is contained in:
@@ -4,8 +4,11 @@ from voice_assistant.agent import MockAgentAdapter
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def text_mock_agent_process_text():
|
||||
agent = MackAgentAdapter()
|
||||
async def test_mock_agent_process_text():
|
||||
"""
|
||||
Verify that the mock Agent returns the expected response.
|
||||
"""
|
||||
agent = MockAgentAdapter()
|
||||
|
||||
response = await agent.process(
|
||||
session_id="session-1",
|
||||
@@ -21,20 +24,21 @@ async def text_mock_agent_process_text():
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_mock_agent_records_call():
|
||||
"""
|
||||
Verify that the mock Agent records its invocation.
|
||||
"""
|
||||
agent = MockAgentAdapter()
|
||||
|
||||
await agent.process(
|
||||
session_id="session-1",
|
||||
turn_id=7,
|
||||
text= "Olá",
|
||||
text="Olá",
|
||||
)
|
||||
|
||||
|
||||
assert agent.calls == [
|
||||
(
|
||||
"session-1",
|
||||
7,
|
||||
"Olá",
|
||||
)
|
||||
]
|
||||
|
||||
]
|
||||
Reference in New Issue
Block a user