Comprehensive guide for writing and running pytest tests in Python projects. Use when (1) Setting up pytest for a new project, (2) Writing test files and test cases, (3) Using fixtures, mocks, and parametrization, (4) Improving test coverage, (5) Debugging test failures, (6) Organizing test structure, or any Python testing tasks with pytest.
安装
npx skills add trotsky1997/My-Claude-Agent-Skills --skill pytest-testingnpx skills add trotsky1997/My-Claude-Agent-Skills --skill pytest-testing -a claude-code -gnpx skills add trotsky1997/My-Claude-Agent-Skills --skill pytest-testing -a codex -ggemini skills install https://github.com/trotsky1997/My-Claude-Agent-Skills.git --path pytest-testinggh skill install trotsky1997/My-Claude-Agent-Skills pytest-testinggit clone --depth 1 https://github.com/trotsky1997/My-Claude-Agent-Skills /tmp/trotsky1997__My-Claude-Agent-Skills
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/trotsky1997__My-Claude-Agent-Skills/pytest-testing ~/.claude/skills/pytest-testing # Claude Code
cp -R /tmp/trotsky1997__My-Claude-Agent-Skills/pytest-testing ~/.agents/skills/pytest-testing # Codex, Cursor, Gemini CLI, Copilot, OpenCode