Python Testing Part 1: isolating external calls and minimising mocks
Mocks are a necessary evil in Python testing. If overused, they essentially become "change detectors", meaning that every time you refactor the implementation of your code, you must update the mocks too. Ideally, your tests should verify what your co...
simoncrowe.hashnode.dev7 min read