def test_parse_reproduce(self): """Test parse reproduce command.""" main.execute(['reproduce', '1234']) main.execute([ 'reproduce', '1234', '--disable-xvfb', '-j', '25', '--current', '--disable-goma', '-i', '500', '--target-args', '--test --test2', '--edit-mode', '--disable-gclient', '--enable-debug' ]) self.mock.start_loggers.assert_has_calls([mock.call()]) self.mock.execute.assert_has_calls([ mock.call(build='chromium', current=False, disable_goma=False, goma_threads=None, testcase_id='1234', iterations=10, disable_xvfb=False, target_args='', edit_mode=False, disable_gclient=False, enable_debug=False), mock.call(build='chromium', current=True, disable_goma=True, goma_threads=25, testcase_id='1234', iterations=500, disable_xvfb=True, target_args='--test --test2', edit_mode=True, disable_gclient=True, enable_debug=True), ])
def test_parse_reproduce(self): """Test parse reproduce command.""" main.execute(['reproduce', '1234']) main.execute(['reproduce', '1234', '--current']) main.execute(['reproduce', '1234', '--build', 'download']) main.execute( ['reproduce', '1234', '--current', '--build', 'standalone']) main.execute(['reproduce', '1234', '--build', 'chromium']) self.mock.execute.assert_has_calls([ mock.call('1234', False, 'standalone'), mock.call('1234', True, 'standalone'), mock.call('1234', False, 'download'), mock.call('1234', True, 'standalone'), mock.call('1234', False, 'chromium') ])
def test_parse_reproduce(self): """Test parse reproduce command.""" main.execute(['reproduce', '1234']) main.execute(['reproduce', '1234', '--current']) main.execute(['reproduce', '1234', '--download']) main.execute(['reproduce', '1234', '--current', '--download']) self.mock.execute.assert_has_calls([ mock.call('1234', False, False), mock.call('1234', True, False), mock.call('1234', False, True), mock.call('1234', True, True) ])
def test_parse_reproduce(self): """Test parse reproduce command.""" main.execute(['reproduce', '1234', '--disable-xvfb']) main.execute(['reproduce', '1234', '-j', '25', '--current']) main.execute( ['reproduce', '1234', '--disable-goma', '--build', 'download']) main.execute( ['reproduce', '1234', '--current', '--build', 'standalone']) main.execute(['reproduce', '1234', '--build', 'chromium', '-i', '500']) main.execute(['reproduce', '1234', '--target-args', '--test --test2']) main.execute(['reproduce', '1234', '--edit-mode']) self.mock.start_loggers.assert_has_calls([mock.call()]) self.mock.execute.assert_has_calls([ mock.call(build='chromium', current=False, disable_goma=False, j=None, testcase_id='1234', iterations=10, disable_xvfb=True, target_args='', edit_mode=False), mock.call(build='chromium', current=True, disable_goma=False, j=25, testcase_id='1234', iterations=10, disable_xvfb=False, target_args='', edit_mode=False), mock.call(build='download', current=False, disable_goma=True, j=None, testcase_id='1234', iterations=10, disable_xvfb=False, target_args='', edit_mode=False), mock.call(build='standalone', current=True, disable_goma=False, j=None, testcase_id='1234', iterations=10, disable_xvfb=False, target_args='', edit_mode=False), mock.call(build='chromium', current=False, disable_goma=False, j=None, testcase_id='1234', iterations=500, disable_xvfb=False, target_args='', edit_mode=False), mock.call(build='chromium', current=False, disable_goma=False, j=None, testcase_id='1234', iterations=10, disable_xvfb=False, target_args='--test --test2', edit_mode=False), mock.call(build='chromium', current=False, disable_goma=False, j=None, testcase_id='1234', iterations=10, disable_xvfb=False, target_args='', edit_mode=True) ])