Pytest Testing Guidelines
OfficialMaster Pytest: write robust tests with coverage
Authorcanvas-medical
Version1.0.0
Installs0
System Documentation
## What problem does it solve? Pytest Testing Guidelines provide a structured framework to write consistent, robust unit tests in Python, emphasizing naming conventions, mock strategies, parametrization, and comprehensive coverage.
## Core Features & Use Cases
- Standardized test naming conventions and project structure that mirror source files.
- Clear guidance on mocking with side_effect, mock_calls verification, and avoiding brittle assertions.
- Practical parametrization patterns and real-world use cases for small utilities up to large codebases.
### Quick Start Begin by reading these guidelines, then apply the templates to your tests:
- name tests after the corresponding source methods (e.g., test_my_feature)
- mock external dependencies with patch or patch.object
- verify mock interactions using a single object-level mock_calls assertion
Dependency Matrix
Required Modules
None requiredComponents
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: Pytest Testing Guidelines Download link: https://github.com/canvas-medical/coding-agents/archive/main.zip#pytest-testing-guidelines Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.