What problem does it solve?
This Skill codifies AutoReview's testing conventions so contributors can write reliable, consistent pytest tests that correctly mock LLM behavior, handle asynchronous code, and reuse shared fixtures without guessing project patterns.
Core Features & Use Cases
- Conventions enforcement: Specifies asyncio_mode = auto, test file and class naming, and use of module-level make* builders for test data.
- Mock LLM patterns: Documents static, sequence, and dispatch mock LLM classes and requires wrapping outputs in LLMResponse or LLMStructuredResponse for deterministic assertions.
- Fixtures and integration guidance: Lists available conftest fixtures, how to patch external APIs, and when to mark tests as integration.
- Use case: Create unit and integration tests for extraction and synthesis components that assert prompt content, response model identity, and structured parsing behavior.
Quick Start
Write a pytest test file for a target module that defines a local MockLLM returning structured LLM responses and uses the provided conftest fixtures and make* builders.