dj-pytest

Community

Simplify pytest testing for op-django projects.

Authordvf
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dj-pytest
Download link: https://github.com/dvf/opinionated-django/archive/main.zip#dj-pytest

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.