python-testing-guidelines
CommunityPytest patterns and best practices guide.
Authorimehr
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill provides patterns for testing Python applications with pytest, including fixtures, mocking, async testing, and test organization.
Core Features & Use Cases
- Fixtures: Reusable test setup with @pytest.fixture.
- Parametrize: Run the same test with multiple inputs using @pytest.mark.parametrize.
- Mocking: Replace dependencies with mocks to isolate units.
- Async Testing: Validate asynchronous code paths with pytest-asyncio.
- Test Organization: Structure tests for clarity and maintainability across projects.
Quick Start
Install pytest and asyncio support, then create tests under tests/ using fixtures and parametrization, and run pytest to execute the suite.
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: python-testing-guidelines Download link: https://github.com/imehr/vet/archive/main.zip#python-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.