Implement comprehensive error handling for Python code paths to keep services resilient and user-friendly. Use when failures are currently silent or exceptions leak through.
中文简介正在准备中。当前显示原文说明。
Write focused, deterministic, well-documented pytest tests for AI-authored code.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
I help with three pytest workflows:
Supporting files in this skill:
assets/pytest.ini.template — ready-to-copy pytest configurationscripts/analyze_coverage.sh [path] — coverage analysis helper (whole src or specific folder/module)
./.claude/skills/python-testing/scripts/analyze_coverage.sh [path]"$(git rev-parse --show-toplevel)/.claude/skills/python-testing/scripts/analyze_coverage.sh" [path]Use when you want to:
"Write tests for the slugify function in src/utils/text.py"
"Check coverage for src/services/payment.py"
"Set up pytest for this project with coverage and async support"
test_<module_or_feature>.pytest_<unit>__<behavior>__<condition>@pytest.mark.aiThree-part format:
Purpose: What this test verifies.
Why this matters: Business or technical consequence if it breaks.
Setup summary: What's arranged and what's asserted.
<domain>_fixtures.pypytest_plugins = ["tests.fixtures"] in conftest.pymocker fixture (pytest-mock)spec=True for type safety./.claude/skills/python-testing/scripts/analyze_coverage.sh — full src coverage./.claude/skills/python-testing/scripts/analyze_coverage.sh src/services — coverage for a specific folder./.claude/skills/python-testing/scripts/analyze_coverage.sh src/utils/text.py — coverage for a single filepytest-mock's mocker or hand-rolled fixturespytest.mark.asyncio or trio)scripts/analyze_coverage.sh when changes affect multiple modulesuv add --dev pytest pytest-cov pytest-asyncio pytest-mockpip install pytest pytest-cov pytest-asyncio pytest-mockassets/pytest.ini.template → pytest.ini at the project roottests/ directory with an empty __init__.py and conftest.py还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Implement comprehensive error handling for Python code paths to keep services resilient and user-friendly. Use when failures are currently silent or exceptions leak through.
中文简介正在准备中。当前显示原文说明。
Tabular and numerical data analysis with descriptive statistics and insights. Use when the user provides data, tables, CSVs, or numbers and wants analysis.
中文简介正在准备中。当前显示原文说明。
Financial factsheet analysis with key metrics extraction and investment rationale
中文简介正在准备中。当前显示原文说明。
Diagnose and fix CI failures without leaving your editor.
中文简介正在准备中。当前显示原文说明。
Reproduce ai-repo PR checks locally with Poe and CI scripts, including per-package typecheck and coverage behavior. Use when validating changes before push or when user asks which local commands match CI.
中文简介正在准备中。当前显示原文说明。
Ask clarifying questions before implementing to ensure Python requirements are understood. Use when a task lacks detail, dependencies are unclear, or multiple interpretations are possible.
中文简介正在准备中。当前显示原文说明。