def setup_method(self, method): """Clean up all class attributes from previous runs.""" AsyncResult.clear() GetTaskInstance.clear() SystemState._throttled_tasks = {} SystemState._throttled_flows = {} # Make sure we restore tracing function in tests Trace._trace_functions = []
def setup_method(self, method): """ Clean up all class attributes from previous runs """ AsyncResult.clear() GetTaskInstance.clear() SystemState._throttled_tasks = {} SystemState._throttled_flows = {}