Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

python-testing

БесплатноБез исполняемых скриптовНе проверен

Test Python services with pytest, async coverage, monkeypatch, and boundary-focused fakes. Use when writing Python tests, fixtures, async tests, regression…

HoangNguyen0403от HoangNguyen0403★ 598 звёзд на GitHub

Об этом скилле

Python Testing

Priority: P0 (CRITICAL)

Universal anti-slop rules (identity fixtures, tautologies, skip/focus, mock echoing, bug-first lock, sleeps, shallow assertions, coverage): anti-slop-rules.md. Only Python deltas follow.

Stack Deltas

  • Framework: pytest with pytest-asyncio for async boundaries; fixtures live in conftest.py.
  • Isolation ([BE-TEST-04]): fake or monkeypatch at external seams — DB, RPC, subprocess, Docker; patch one seam high enough to keep the test readable; no broad monkeypatch spray.
  • Parametrize ([BE-TEST-01]): pytest.mark.parametrize for equivalent inputs and boundaries; distinct scenarios may stay separate.
  • Assertions ([BE-TEST-03]): assert structured outcomes — metadata, route result, blocker text, emitted command — not shallow truthiness or implementation trivia.
  • Regression ([BE-TEST-05]): cover contract parsing, workflow routing, and verifier outcomes.
  • Coverage: diagnostic and project-configured; verify risk-weighted critical paths.

Recipe

  1. Write the failing test first for the boundary or regression.
  2. Patch one seam high enough to keep the test readable.
  3. Assert structured outcomes.
  4. Use async tests for async code; do not spin real event loops manually.
  5. Cover negative paths for malformed packets, stale runtime state, and missing env.

Anti-Patterns

  • No live network or DB in unit tests: use fakes or testcontainers.
  • No broad monkeypatch spray: patch the boundary, not every helper under it.
  • No smoke-only proof for shared runtime changes: add focused assertions.

References

Установить python-testing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

evals/evals.jsonreferences/pytest-patterns.md

FAQ

Что делает скилл python-testing?

Test Python services with pytest, async coverage, monkeypatch, and boundary-focused fakes. Use when writing Python tests, fixtures, async tests, regression tests, or dependency-isolated verification.

Как установить скилл python-testing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл python-testing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить python-testing с