python-tests-skill
CommunityWrite reliable Python tests with clarity.
Software Engineering#pytest#fixtures#mocking#unit-tests#integration-tests#test-structure#python-testing
Authorialae
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This guide helps developers write consistent, coherent, and effective Python unit and integration tests using pytest, reducing flaky tests and speeding up feedback loops.
Core Features & Use Cases
- Clear test structure: unified layout for unit and integration tests under a single tests/ tree.
- Naming conventions: descriptive test names that read as sentences and concise test modules.
- Fixtures and conftest: reusable setup with proper scoping to keep tests fast and isolated.
- Mocking and patches: guidance to mock at boundaries without over-mocking and to use autospec.
- Parametrization: systematic coverage of input variations and edge cases.
- Test discovery, organization, and markers: explicit separation of unit vs integration tests and proper labeling.
Quick Start
Run pytest from the project root to execute the full test suite (unit and integration) in one command.
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-tests-skill Download link: https://github.com/ialae/TelegarmBotor/archive/main.zip#python-tests-skill 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 471,000+ vetted skills library on demand.