Skill / SKILL.md

Pytest Patterns

Everyone-Needs-A-Copilot/claude-copilot

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.
3 views 14 repository stars 0 commentsUpdated Nov 28, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/Everyone-Needs-A-Copilot/claude-copilot' skill-source

Use the complete skill-source/.claude/skills/testing/pytest-patterns directory with your client’s skill installer.

  • .claude/skills/testing/pytest-patterns Claude Code

    main · SKILL.md

    Open installation source

    Client installation directory present in source repository

Source directory .claude/skills/testing/pytest-patterns

Compatibility & requirements

Declared tools

['Read', 'Grep', 'Glob', 'Bash']

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Needs source review
Checked at
Pending source check
Content SHA-256
ce8083f4346a572b106f749093ade1dfc092320efc6455c711d4453f48bb0996
Format validation findings
  • Invalid allowed-tools declaration.
Agent Skills specification
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills