DEV Community

Discussion on: Python unit testing with Mock - Part One

Collapse
 
s0undt3ch profile image
Pedro Algarvio

Yes, the wrong usage of return values are the issue that cause leakage.

As far as running into trouble, unless you have a massive amount of tests, you won't actually run out of memory, so, like you, probably 99% of mock users won't hit any issues, but its worth keeping that article in your mind if you see some weird behavior on your tests.