This repo contains examples of MagicMock usage for unit testing. Feel free to fork this repo and play around with the example test cases to get a better understanding of MagicMock and its many features.
You will want to install the required libraries using the following command:
pip install -r requirements.txt
Once installed, you can run the tests using pytest through your IDE or though CLI.