Python Testing
Estrategias de pruebas Python usando pytest, metodología TDD, fixtures, mocking, parametrización y requisitos de cobertura.
Install
/plugin marketplace add affaan-m/ECCThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add affaan-m/ECC --skill python-testinggit clone --depth 1 https://github.com/affaan-m/ECC.git /tmp/ECC
mkdir -p ~/.claude/skills
cp -r /tmp/ECC/docs/es/skills/python-testing ~/.claude/skills/python-testingPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Patrones de Pruebas Python
Estrategias completas de pruebas para aplicaciones Python usando pytest, metodología TDD y buenas prácticas.
## Cuándo Activar
- Escribir código Python nuevo (seguir TDD: rojo, verde, refactorizar)
- Diseñar suites de pruebas para proyectos Python
- Revisar la cobertura de pruebas Python
- Configurar infraestructura de pruebas
## Filosofía Central de Pruebas
### Desarrollo Guiado por Pruebas (TDD)
Siempre seguir el ciclo TDD:
1. **ROJO**: Escribir una prueba que falle para el comportamiento deseado
2. **VERDE**: Escribir el código mínimo para que la prueba pase
3. **REFACTORIZAR**: Mejorar el código manteniendo las pruebas en verde
```python
# Paso 1: Escribir prueba fallida (ROJO)
def test_add_numbers():
result = add(2, 3)
assert result == 5
# Paso 2: Escribir implementación mínima (VERDE)
def add(a, b):
return a + b
# Paso 3: Refactorizar si es necesario (REFACTORIZAR)
```
### Requisitos de Cobertura
- **Objetivo**: 80%+ de cobertura de código
- **Rutas críticas**: 100% de cobertura requerida
- Usar `pytest --cov` para medir la cobertura
```bash
pytest --cov=mypackage --cov-report=term-missing --cov-report=html
```
## Fundamentos de pytest
### Estructura Básica de PruebasDetails
- Skill name
python-testing- Repository
- affaan-m/ECC
- Path
docs/es/skills/python-testing/SKILL.md- License
- MIT
- Repo updated
- 30 October 2026
- Listed in
- hesreallyhim/awesome-claude-code
FAQ
What does the Python Testing skill do?
Estrategias de pruebas Python usando pytest, metodología TDD, fixtures, mocking, parametrización y requisitos de cobertura.
How do I install the Python Testing skill?
Claude Code plugin: /plugin marketplace add affaan-m/ECC. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Python Testing popular?
It lives in affaan-m/ECC, which has 293,665 GitHub stars and 43,456 forks, and is included in 1 curated skill list.
Related skills
Accessibility
294kaffaan-m/ECC
WCAG 2.2 レベル AA 標準を用いてインクルーシブなデジタルプロダクトを設計・実装・監査します。Web 用のセマンティック ARIA および Web・ネイティブプラットフォーム(iOS/Android)のアクセシビリティトレイトを生成するために使用します。
Agent Architecture Audit
294kaffaan-m/ECC
エージェントおよび LLM アプリケーション向けのフルスタック診断。12 層のエージェントスタックにおけるラッパーリグレッション、メモリ汚染、ツール規律の失敗、隠れた修復ループ、レンダリング破損を監査します。重要度順の発見事項とコードファーストの修正を生成します。エージェントアプリケーション、自律ループ、または LLM を活用した機能を構築する開発者に必須です。
Agent Eval
294kaffaan-m/ECC
カスタムタスクでコーディングエージェント(Claude Code、Aider、Codex など)をヘッドツーヘッドで比較し、合格率、コスト、時間、一貫性のメトリクスを測定します
Python Testing
294kaffaan-m/ECC
pytest、TDD手法、フィクスチャ、モック、パラメータ化、カバレッジ要件を使用したPythonテスト戦略。
Python Testing
294kaffaan-m/ECC
Python testing best practices using pytest including fixtures, parametrization, mocking, coverage analysis, async testing, and test organization. Use when writing or improving Python tests.
Quarkus TDD
294kaffaan-m/ECC
Desarrollo guiado por pruebas para Quarkus 3.x LTS usando JUnit 5, Mockito, REST Assured, pruebas Camel y JaCoCo. Usar al agregar funcionalidades, corregir bugs o refactorizar servicios orientados a eventos.
Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.