Reference docMembers
python-testing-patterns - detailed patterns and worked examples
python-testing-patterns - detailed patterns and worked examples is a reference document for Claude Code, from the wshobson agents and plugins collection by wshobson. The full text is about 1,068 words in 9 sections, with 7 code blocks. It is a supporting file that a skill or agent reads while it works, so the main instructions can stay short.
It is most useful for people working in Testing and QA who use Claude Code.
What it covers
- Fundamental Patterns
- Pattern 1: Basic pytest Tests
- Pattern 2: Fixtures for Setup and Teardown
- Pattern 3: Parameterized Tests
- Pattern 4: Mocking with unittest.mock
- Pattern 5: Testing Exceptions
- Test Design Principles
- One Behavior Per Test
- Test Error Paths
The full text is in the members library
Book a call and we will give you access to the full Claude Code library: every entry in full, search by meaning, copy and download.
Author: wshobson, wshobson agents and plugins. License: MIT.