Home
last modified time | relevance | path

Searched refs:mock_input (Results 1 – 10 of 10) sorted by relevance

/tools/asuite/atest-py2/test_finders/
Dtest_finder_utils_unittest.py157 def test_extract_test_from_tests(self, mock_input): argument
165 mock_input.return_value = '0'
169 mock_input.return_value = '100'
172 mock_input.return_value = 'lOO'
177 def test_extract_test_from_multiselect(self, mock_input): argument
181 mock_input.return_value = '3'
187 mock_input.return_value = '0,2'
193 mock_input.return_value = '1-2'
198 mock_input.return_value = '0,1-2'
204 mock_input.return_value = '?/#'
[all …]
/tools/asuite/atest/test_finders/
Dtest_finder_utils_unittest.py194 def test_extract_test_from_tests(self, mock_input): argument
202 mock_input.return_value = '1'
206 mock_input.return_value = '100'
209 mock_input.return_value = 'lOO'
214 def test_extract_test_from_multiselect(self, mock_input): argument
218 mock_input.return_value = '3'
224 mock_input.return_value = '0,2'
230 mock_input.return_value = '1-2'
235 mock_input.return_value = '0,1-2'
241 mock_input.return_value = '?/#'
[all …]
/tools/asuite/aidegen/sdk/
Djdk_table_unittest.py246 def test_override_xml(self, mock_input, mock_metrics): argument
248 mock_input.side_effect = ['1', 'n']
250 self.assertEqual(mock_input.call_count, 2)
251 mock_input.side_effect = ['n']
254 mock_input.side_effect = ['y']
267 def test_skip_send_metrics(self, mock_input, mock_metrics, mock_parse): argument
269 mock_input.side_effect = ['y']
Dandroid_sdk_unittest.py159 def test_path_analysis(self, mock_is_sdk_path, mock_input): argument
165 mock_input.return_value = ''
169 mock_input.return_value = 'a/b'
/tools/asuite/plugin_lib/
Ddeployment_unittest.py51 def test_ask_for_install(self, mock_input): argument
53 mock_input.return_value = 'y'
55 self.assertTrue(mock_input.call)
/tools/asuite/aidegen/lib/
Dide_common_util_unittest.py92 def test_ask_preference(self, mock_glob, mock_input): argument
95 mock_input.return_value = '1'
100 mock_input.return_value = '2'
Dide_util_unittest.py144 def test_init_ideintellij(self, mock_sys, mock_input, mock_set): argument
151 self.assertTrue(mock_input.called)
154 self.assertTrue(mock_input.called)
613 def test_eclipse_get_ide_cmd(self, mock_exists, mock_input): argument
628 mock_input.return_value = 'n'
Dmodule_info_util_unittest.py324 def test_build_failed_handle(self, mock_glob, mock_input): argument
327 mock_input.return_value = 'N'
/tools/asuite/atest/
Datest_utils_unittest.py311 def test_update_test_runner_cmd(self, mock_json_load_data, mock_input): argument
344 mock_input.return_value = 'n'
569 def test_prompt_with_yn_result(self, mock_input): argument
572 mock_input.return_value = ''
575 mock_input.return_value = 'y'
577 mock_input.return_value = 'nO'
Dcli_translator_unittest.py117 mock_input, _mock_update_test_info): argument
153 mock_input.return_value = "Y"
388 def test_confirm_running(self, mock_input): argument
391 mock_input.return_value = 'N'