Pytest testing patterns, anti-patterns, and quality rules for Python test files (test_*.py, *_test.py, conftest.py). Includes deterministic test-smell detector (pytest_smell.py) for no-assertion tests, empty tests, bare excepts, magic numbers, sleep calls, and print calls. Covers fixtures, parametrize, mock, patch, and assert patterns. Use proactively when reviewing or writing pytest test files, diagnosing flaky or unreliable Python test suites, code-reviewing test files, or running a CI quality gate on test file hygiene. Run the smell detector for deterministic issue detection.
$npx -y skills add everyone-needs-a-copilot/claude-copilot --skill pytest-patternsInstalls into the current project.
Run `npx skills use "https://github.com/everyone-needs-a-copilot/claude-copilot" --skill "everyone-needs-a-copilot/claude-copilot/pytest-patterns"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/everyone-needs-a-copilot/claude-copilot" that are relevant to the current task. Run `npx skills add "https://github.com/everyone-needs-a-copilot/claude-copilot"` and select the relevant skills, then follow their instructions.