Testing: exceptions and caches
Summary
The post covers unifying exception testing in pytest by parameterizing expected outcomes, and explains caching pitfalls with lru_cache in tests. It introduces pytest-antilru to clear caches between tests, enabling reliable, isolated test runs.