chore: clean imports and restore test coverage

This commit is contained in:
2026-10-09 19:05:39 +00:00
parent cebcb3fd61
commit ee6f5ea52e
9 changed files with 59 additions and 46 deletions

View File

@@ -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á",
)
]
]