Write tests using pytest with clear, descriptive names Place tests in a tests/ directory that mirrors the source structure Mock I/O and APIs; test edge cases and common failure modes Maintain 90%+ test coverage using pytest-cov