Tech Insights
If you set the parameter side_effect in mock.patch() as an iterable each call to the mock will return the next value from the iterable.
Shared by
- Mock
- Python
- Test



