ancient-hospital-67205
08/04/2025, 3:29 AMtall-airline-16756
08/04/2025, 3:29 AMtall-airline-16756
08/04/2025, 3:30 AMModuleNotFoundError: No module named 'livekit.agents.testing' occurs because the module livekit.agents.testing is not part of the LiveKit Agents package. This module is part of the internal test suite and is not intended for direct import.
To write tests for your agent, you should:
1. Use the public API modules like livekit.agents.AgentSession and livekit.agents.Agent.
2. Utilize a testing framework such as pytest or pytest-asyncio.
3. Follow the examples in the LiveKit Agents documentation for writing behavioral tests.
Would you like an example of how to structure your tests using the public API?
Sources: Testing and evaluation | LiveKit Docs | tests/conftest.py