Skip to content
Agentmart
Submit a tool

python-testing-tdd

Patrón estricto de testing Python con TDD aplicado a runtime e infraestructura.

Skill by gentleman-programming

IndexedApache-2.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ntimpano-python-testing-tdd

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Patrón estricto de testing Python con TDD aplicado a runtime e infraestructura. Trigger: cuando se pidan tests Python o se pida trabajar en modo TDD.

Use cases: testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/python-testing-tdd

What's inside

Skill name
python-testing-tdd
Description
Patrón estricto de testing Python con TDD aplicado a runtime e infraestructura. Trigger: cuando se pidan tests Python o se pida trabajar en modo TDD.
License
Apache-2.0
Metadata
author: gentleman-programming · version: 1.0
Instructions
58 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

## When to Use

- Implementar cambios en Python con garantía de comportamiento.
- Escribir tests primero (TDD) para bugfixes o features.
- Validar lambdas, integraciones AWS y CDK Step Functions.

## Critical Patterns

1. **TDD real: RED → GREEN → REFACTOR**
  - RED: test nuevo falla por la razón correcta.
  - GREEN: mínimo código para pasar.
  - REFACTOR: mejorar sin romper tests.
  - Si no hubo RED real, no fue TDD.

2. **Tests de runtime, no solo inspección de source**
  - Probar comportamiento observable (inputs/outputs/side effects).
  - Evitar tests que solo validan strings o AST sin ejecutar lógica.

3. **Mocking AWS: boto3/SES/Dynamo**
  - Mockear clientes boto3 en bordes del sistema.
  - Validar llamadas esperadas (payload, tabla, destinatarios, etc.).
  - No tocar recursos AWS reales en unit tests.

4. **CDK Step Functions: assertions de synth**
  - Synth de stack en test.
  - Assert sobre definición de State Machine y recursos esperados.
  - Verificar contratos críticos (timeouts, retries, permisos mínimos).

5. **Evidencia ejecutada obligatoria**
  - Guardar comando exacto corrido (`pytest ...`).
  - Guardar resultado (pass/fail + resumen).
  - No declarar “tested” sin ejecución real.

## Minimal TDD Loop

```text
1) Escribir test que falla (RED)
2) Implementar mínimo para pasar (GREEN)
3) Refactor seguro con suite verde (REFACTOR)
4) Registrar evidencia del run
```

## Commands

```bash
# Ejecutar subset rápido durante RED/GREEN
pytest tests/unit/path/test_module.py -q

# Ejecutar suite objetivo antes de cerrar
pytest tests/unit -q
```

## Resources

- **Runtime tests**: `tests/unit/`
- **Infra assertions**: `tests/unit/test_alerting_router_stack.py`

From ntimpano/guild, Apache-2.0.

More from ntimpano/guild

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
May 19, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.0
License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from gentleman-programming

Cite this page

python-testing-tdd skill. Agent Mart. https://agentmart.dev/skills/ntimpano-python-testing-tdd (last updated 2026-10-24)