Tag: pytest (2 posts)🇺🇸
How to use functions as Mocks in Python tests
Useful for avoid calling real APIs or services
Mocking global variables in Python tests
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.