Write clean, maintainable pytest tests using Fake-based testing, contract testing, and dependency injection patterns. Use when setting up test suites for Pyt...
Initial release of clean-pytest. - Introduces guidelines and patterns for writing clean, maintainable pytest tests in Python/MCP projects. - Emphasizes using Fake-based testing over mocks for better readability and isolation. - Documents explicit Arrange-Act-Assert (AAA) structure for all tests. - Provides recommended fixture organization, including dependency injection and environment setup. - Describes contract testing, layered architecture patterns, and strategies for error testing using fakes. - Includes code examples for creating custom Fake classes and writing clear, reusable pytest fixtures.