python-testing
БесплатноБез исполняемых скриптовНе проверенTest Python services with pytest, async coverage, monkeypatch, and boundary-focused fakes. Use when writing Python tests, fixtures, async tests, regression…
от 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:
pytestwithpytest-asynciofor async boundaries; fixtures live inconftest.py. - Isolation (
[BE-TEST-04]): fake ormonkeypatchat 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.parametrizefor 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
- Write the failing test first for the boundary or regression.
- Patch one seam high enough to keep the test readable.
- Assert structured outcomes.
- Use async tests for async code; do not spin real event loops manually.
- 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
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic