DigiNews

Tech Watch Articles

← Back to articles

Testing: exceptions and caches

Quality: 9/10 Relevance: 8/10

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.

🚀 Service construit par Johan Denoyer