python-testing-patterns – Coding skill for AI agents
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.
Install the python-testing-patterns skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/python-testing-patterns-ec19f.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /python-testing-patterns – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/python-testing-patterns-ec19f.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $python-testing-patterns – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/python-testing-patterns-ec19f.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /python-testing-patterns – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/python-testing-patterns-ec19f.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /python-testing-patterns – then describe the task you want done.
SKILL.md content
Python Testing Patterns
Comprehensive guide to implementing robust testing strategies in Python using pytest, fixtures, mocking, parameterization, and test-driven development practices.
Use this skill when
- Writing unit tests for Python code
- Setting up test suites and test infrastructure
- Implementing test-driven development (TDD)
- Creating integration tests for APIs and services
- Mocking external dependencies and services
- Testing async code and concurrent operations
- Setting up continuous testing in CI/CD
- Implementing property-based testing
- Testing database operations
- Debugging failing tests
Do not use this skill when
- The task is unrelated to python testing patterns
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Related skills
- qiskit – Build and transpile Qiskit circuits, test local simulators and prepare authorized…
- qoder-delegate – Delegate coding tasks to the Qoder CLI (`qodercli`) only when the user explicitly…
- rayden-code – Generate React code with Rayden UI components using correct props, tokens, and premium…
- rclone-cli – Rclone command-line cloud storage manager reference and usage guide. Use this skill…
- react-best-practices – Comprehensive performance optimization guide for React and Next.js applications, adapted…
- react-component-performance – Diagnose slow React components and suggest targeted performance fixes.
- react-flow-architect – Build production-ready ReactFlow applications with hierarchical navigation, performance…
- react-flow-node-ts – Create React Flow node components following established patterns with proper TypeScript…