How to use functions as Mocks in Python tests
Useful for avoid calling real APIs or services
- #python
- #testing
- #mocking
- #pytest
Useful for avoid calling real APIs or services
I was trying to test some global variables with Python, specially for a script which contain global variables. And after trying and failing I think that I can show you the most simple version to do it.