pytest_asyncio

Installation
SKILL.md

pytest_asyncio

pytest es el framework de testing principal del sistema KYC. pytest-asyncio añade soporte para tests de funciones async def, indispensable dado que todos los agentes son async. pytest-cov mide la cobertura de tests.

When to use

Usar para todos los tests: unitarios, de integración y de regresión. Ningún código nuevo debe llegar a main sin tests que cubran el happy path y los edge cases críticos.

Instructions

  1. Instalar: pip install pytest pytest-asyncio pytest-cov httpx
  2. Configurar en pyproject.toml:
    [tool.pytest.ini_options]
    asyncio_mode = "auto"
    testpaths = ["backend/tests"]
    addopts = "--cov=backend --cov-report=xml --cov-fail-under=80"
    
  3. Estructura de tests:
Related skills
Installs
3
First Seen
Mar 6, 2026