What problem does it solve?
This Skill eliminates the guesswork and inconsistency of setting up pytest test suites for op-django projects, which use a strict layered architecture with clear boundaries between API, service, repository, and model layers.
Core Features & Use Cases
- Three-Layer Test Convention: Enforces separate test files for repositories (real DB, slow), services (mocked repos, fast), and APIs (HTTP integration, slow) to keep test suites fast and maintainable.
- Prebuilt Fixtures & Configuration: Includes ready-to-use conftest fixtures for DTOs, svcs service overrides, and mock repositories, plus complete pytest configuration for django, Celery eager mode, and freezegun.
- Use Case: Use this Skill when setting up test infrastructure for a new op-django project, writing tests for a new feature across all layers, or ensuring reliable-signal receiver tests have proper idempotency checks.
Quick Start
Use the dj-pytest skill to configure pytest for your op-django project and write a passing service test for a new business logic feature with mocked repository dependencies.