pytest-best-practices

Installation
SKILL.md

<essential_principles>

Test Independence

  • Each test must run in isolation - no shared state between tests
  • Use fixtures for setup/teardown, never class-level mutable state
  • Tests should pass regardless of execution order

Naming Conventions

  • Files: test_*.py or *_test.py
  • Functions: test_<description>()
  • Classes: Test<ClassName>
  • Fixtures: descriptive lowercase_with_underscores
Related skills

More from cfircoo/claude-code-toolkit

Installs
17
GitHub Stars
17
First Seen
Jan 23, 2026