--- id: dawiddutoit/custom-claude/pytest-mocking-strategy version: "64b086c3" license: none install: manual updated: 2026-01-26 --- # Pytest Mocking Strategy — Learn a decision-driven framework for mocking in pytest that separates external boundaries from business logic. This skill covers autospec enforcement, async mock patterns, reusable mock factories, and a clear matrix for what to mock versus what to test directly. Master the golden rule—mock external dependencies, test the unit in isolation—to write tests that survive refactoring. Publisher: dawiddutoit · Stars: 1 · Updated: 2026-01-26 Install (manual): `git clone https://github.com/dawiddutoit/custom-claude` *Unlicensed repository - metadata only, no file contents reproduced.* [View on SkillFed](https://skillfed.io/dawiddutoit/custom-claude/pytest-mocking-strategy) · [View on GitHub](https://github.com/dawiddutoit/custom-claude)