Content Preview
--- name: python-testing description: pytest、TDD手法、フィクスチャ、モック、パラメータ化、カバレッジ要件を使用したPythonテスト戦略。 --- # Pythonテストパターン pytest、TDD方法論、ベストプラクティスを使用したPythonアプリケーションの包括的なテスト戦略。 ## いつ有効化するか - 新しいPythonコードを書くとき(TDDに従う:赤、緑、リファクタリング) - Pythonプロジェクトのテストスイートを設計するとき - Pythonテストカバレッジをレビューするとき - テストインフラストラクチャをセットアップするとき ## 核となるテスト哲学 ### テスト駆動開発(TDD) 常にTDDサイクルに従います。 1. **赤**: 期待される動作のための失敗するテストを書く 2. **緑**: テストを通過させるための最小限のコードを書く 3. **リファクタリング**: テストを通過させたままコードを改善する ```python # Step 1: Write failing test
How to Use
Recommended: Install to project (local)
mkdir -p .claude/skills
curl -o .claude/skills/python-testing.md \
https://raw.githubusercontent.com/affaan-m/everything-claude-code/main/docs/ja-JP/skills/python-testing/SKILL.mdSkill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.
Alternative: Clone full repo
git clone https://github.com/affaan-m/everything-claude-codeThen reference at docs/ja-JP/skills/python-testing/SKILL.md
Related Skills
python-testing-patterns
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.
developmentpython
by sickn33 (Antigravity) · antigravity-awesome-skills
temporal-python-testing
Comprehensive testing approaches for Temporal workflows using pytest, progressive disclosure resources for specific testing scenarios.
developmenttemporalpython
by sickn33 (Antigravity) · antigravity-awesome-skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
mcp-buildermcpbuilderpython
by Anthropic · anthropic-official-skills
using-tmux-for-interactive-commands
Use when you need to run interactive CLI tools (vim, git rebase -i, Python REPL, etc.) that require real-time input/output - provides tmux-based approach for controlling interactive sessions through detached sessions and send-keys
using-tmux-for-interactive-commandsusingtmuxfor
by Jesse Vincent · obra-superpowers-lab