Python: Mocking for tests
Software often relies on third party services to function. Third party services can be anything, from a random number generator to a REST API. We'll take a simple HTTP API as an example. When designing unittests for the parts of your code that interact with the API, you need some …
more ...