mock
Stand in for services during Python tests and check how they were called.
testing-cabal · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a Python virtual environment, install mock==5.2.0. Replace a sample summary function with a fake result and inspect its call.
What we tested
5.2.0. Replace a sample summary function with a fake result and inspect its call. Returned the chosen fake result and verified the exact call.