<p>If you set the parameter <code>side_effect</code> in <code>mock.patch()</code> as an iterable each call to the mock will return the next value from the iterable.</p>
By clicking “Accept cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts. Check our privacy policies.
By clicking “Accept all”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts. Check our privacy policies.