Python mock function that returns dictionary multiple times
Python mock function that returns dictionary multiple times Question: Background I have a function my_func that gets a dictionary from another function get_dict and modifies it. On failure, my_func gets retried until it succeeds or called a specified number of times. What complicates this is that the dictionary must have exactly one key-value pair, otherwise …