Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Python Testing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ghvinashvili-python-testing)
---
name: python-testing
description: Python testing with pytest and TDD, fixtures, mocks, parametrization and coverage. Use when writing or fixing pytest tests.
metadata:
origin: ECC
---
# Python Testing Patterns
Comprehensive testing strategies for Python applications using pytest, TDD methodology, and best practices.
## When to Activate
- Writing new Python code (follow TDD: red, green, refactor)
- Designing test suites for Python projects
- Reviewing Python test coverage
- Setting up testing infrastructure
## Additional resources
Each further section of this skill is a file of its own under `references/`; read the one the task needs:
- [Core Testing Philosophy](references/core-testing-philosophy.md)
- [pytest Fundamentals](references/pytest-fundamentals.md)
- [Fixtures](references/fixtures.md)
- [Parametrization](references/parametrization.md)
- [Markers and Test Selection](references/markers-and-test-selection.md)
- [Mocking and Patching](references/mocking-and-patching.md)
- [Testing Async Code](references/testing-async-code.md)
- [Testing Exceptions](references/testing-exceptions.md)
- [Testing Side Effects](references/testing-side-effects.md)
- [Test Organization](references/test-organization.md)
- [Best Practices](references/best-practices.md)
- [Common Patterns](references/common-patterns.md)
- [Quick Reference](references/quick-reference.md)