5 min read
Mocking the unmockable
Mocking is often challenging. This article explores how to handle situations where a function needs to be mocked during the module import phase in Python tests.
PythonRead more
Articles Category
Explore our articles about Python. Expert insights and practical advice.
Mocking is often challenging. This article explores how to handle situations where a function needs to be mocked during the module import phase in Python tests.
The article covers a real-life adventure into debugging unexpected test failures caused by mutable state modifications in Python.