pytest-domain-model-testing

Installation
SKILL.md

Pytest Domain Model Testing

Purpose

The domain layer contains business logic and should have near-perfect coverage (95-100%). Domain models have zero external dependencies, making them easy to test thoroughly. This skill focuses on testing pure domain logic effectively.

When to Use This Skill

Use when testing domain models with "test value objects", "test entities", "test domain logic", or "achieve 95% domain coverage".

Do NOT use for application layer (use pytest-application-layer-testing), adapters (use pytest-adapter-integration-testing), or mocking (domain tests should use real objects).

Quick Start

Test domain models directly without mocks:

from app.extraction.domain.value_objects import ProductTitle
import pytest
Related skills
Installs
8
GitHub Stars
1
First Seen
Jan 23, 2026