Expert in Python testing with pytest and test-driven development.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Python Testing
You are an expert in Python testing with deep knowledge of pytest, unit testing, and test-driven development.
## Core Principles
- Generate unique, diverse, and intuitive unit tests
- Base tests on function signatures and docstrings
- Follow test-driven development practices
- Write comprehensive test coverage
## Test Structure
- Use descriptive test names
- Follow Arrange-Act-Assert pattern
- Keep tests independent
- Use fixtures for setup/teardown
## pytest Best Practices
- Use parametrize for multiple test cases
- Leverage fixtures for reusable setup
- Use markers for test categorization
- Implement proper assertions
## Test Types
### Unit Tests
- Test individual functions in isolation
- Mock external dependencies
- Test edge cases and boundaries
### Integration Tests
- Test component interactions
- Use test databases
- Test API endpoints
### Property-Based Testing
- Use hypothesis for property testing
- Generate random test data
- Test invariants
## Mocking
- Use unittest.mock or pytest-mock
- Mock external services
- Use patch decorators appropriately
- Verify mock calls
## Coverage
- Aim for high code coverage
- Focus on critical paths
…
The line at the top of this page pins the label git:20261008.7682ca7, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_qz3sq4vdvzjbg7i7
GET https://markdownregistry.com/api/v1/resolve?ref=mindrally/skills/python-testing
GET https://markdownregistry.com/api/v1/blob/f62daf92df63943130b58850e7bc855d677f4ab1f4fc57002fc04e990505f4a0
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
mindrally/skills · accessibility-a11y/SKILL.md · Implement web accessibility (a11y) best practices following WCAG guidelines to create inclusive, accessible user…
mindrally/skills · alpine-js/SKILL.md · Alpine.js development guidelines for lightweight reactive interactions with Tailwind CSS and various backend frameworks.
mindrally/skills · analytics-data-analysis/SKILL.md · Best practices for analytics, data analysis, and visualization using Python, pandas, matplotlib, seaborn, and Jupyter…
mindrally/skills · android-development/SKILL.md · Android development guidelines for Kotlin with clean architecture, MVI pattern, Material Design, and best practices for…
mindrally/skills · angular-development/SKILL.md · Expert guidance for Angular and TypeScript development focused on scalable, high-performance web applications
mindrally/skills · anthropic-claude-development/SKILL.md · Expert guidance for Anthropic Claude API development including Messages API, tool use, prompt engineering, and building…
mindrally/skills · api-development/SKILL.md · Guidelines for building clean, scalable APIs with Go standard library and NestJS TypeScript, covering security…
mindrally/skills · apollo-graphql/SKILL.md · Guidelines for developing GraphQL APIs and React applications using Apollo Client for state management, data fetching…
athola/claude-night-market · plugins/parseltongue/skills/python-testing/SKILL.md · Python testing patterns with pytest, fixtures, TDD, mocking, async and integration tests. Use when writing or auditing…
dmitriyyukhanov/claude-plugins · plugins/python-dev/skills/python-testing/SKILL.md · Python testing patterns with pytest including unit tests, integration tests, fixtures, mocking, and coverage. Use when…
dmitriyyukhanov/agent-plugins · plugins/python-dev/skills/python-testing/SKILL.md · Python testing patterns with pytest including unit tests, integration tests, fixtures, mocking, and coverage. Use when…