python-testing-lightweight
Installation
SKILL.md
Python Testing (Lightweight)
Overview
Tests prove features work. Coverage is secondary. E2e tests beat unit tests. Real beats mocked.
Philosophy
- Trustworthiness > coverage. A test that mocks away the tested thing proves nothing.
- 5 good e2e tests > 100 unit tests with heavy mocking.
- 20/80 rule. Test where it gives the most confidence.
- Unit tests for pure logic only. Functions that transform data honestly.
- Real over mocked. Real HTTP servers (pytest-httpserver), real tmp dirs, real processes.