Python Testing 101 (How To Decide What To Test)
Dealing with failing tests is a misery.
Imagine your new code breaks old tests and you have no idea why, preventing you from merging your latest code.
Your tests are slow and break every time you change the code even slightly, feeling more like a massive dumbbell you dread when merging PRs, rather than a net or signal to protect or guide you.
On the other side of the spectrum, maybe you don’t even know what to test.
Should you test every function in your application? What if the code interacts with a database or external service? Should you use mocks?