Skip to content

AI agent testing guide #584

Description

@codebestia

Write apps/ai_agent/docs/testing.md: the pytest setup, the fixtures in tests/conftest.py (client, mock_openai, mock_weaviate, the autouse API-key fixture), and how to add a test for a new endpoint without calling a real model or vector store.

Acceptance criteria:

  • Documents each fixture, what it patches and the default it returns
  • Gives a worked example of adding an endpoint test using the existing fixtures
  • Documents the coverage configuration and how to read the report
  • Notes the known gap that /index/message has no dedicated test module, so a contributor can pick it up

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programaidocumentationImprovements or additions to documentationtesting

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions