int object is not an iterator but plugin_run_mock.side_effect require iterator so [123]