Simon Crowesimoncrowe.hashnode.devยทSep 21, 2024Python Testing Part 2: Dependency Inversion with Service FunctionsThe first article in this series dealt with avoiding excessive use of mocks when testing code that performs I/O. This article deals with service functions that make use of dependency inversion. Mocks should be absent from these tests altogether. This...31 readsPythonAdd a thoughtful commentNo comments yetBe the first to start the conversation.