Home
last modified time | relevance | path

Searched refs:mock_run (Results 1 – 6 of 6) sorted by relevance

/tools/test/connectivity/acts/framework/tests/controllers/bits_lib/
Dbits_client_test.py58 def test_execute_generic_command(self, mock_run): argument
74 mock_run.assert_called_with(expected_final_command, timeout=12345)
79 mock_run): argument
85 mock_run.assert_called()
86 args_list = mock_run.call_args_list
94 def test_start_collection__frecuency_arg_gets_populated(self, mock_run): argument
100 mock_run.assert_called()
101 args_list = mock_run.call_args_list
109 def test_start_collection__sampling_rate_defaults_to_1000(self, mock_run): argument
115 mock_run.assert_called()
[all …]
Dbits_service_test.py48 def test_monsoons_usb_gets_connected_on_cleanup(self, mock_run, *_): argument
54 mock_run.assert_called()
55 self.assertIn('--usbpassthrough', mock_run.call_args[0][0])
56 self.assertIn('on', mock_run.call_args[0][0])
/tools/acloud/setup/
Dgcp_setup_runner_test.py147 def testSetupGcloudInfo(self, mock_sdk, mock_set, mock_run, mock_create): argument
153 mock_run.assert_called_once()
230 def testEnableGcloudServices(self, mock_run): argument
232 mock_run.return_value = ""
234 mock_run.assert_has_calls([
243 def testGoogleAPIService(self, mock_run): argument
248 mock_run.assert_has_calls([
253 def testCheckBillingEnable(self, mock_run): argument
256 mock_run.return_value = "billingEnabled: true"
258 mock_run.assert_has_calls([
[all …]
/tools/acloud/create/
Dlocal_image_local_instance_test.py607 def testLogCvdVersion(self, mock_run): argument
612 mock_run.assert_not_called()
615 mock_run.return_value = mock.Mock(
620 mock_run.assert_called_once()
621 self.assertEqual(mock_run.call_args[0][0], f"{cvd_path} version")
624 mock_run.reset_mock()
625 mock_run.side_effect = subprocess.SubprocessError
627 mock_run.assert_called_once()
/tools/asuite/atest/test_runners/
Drobolectric_test_runner_unittest.py45 def test_run_tests_raw(self, mock_run): argument
52 mock_run.return_value = mock_subproc
Datest_tf_test_runner_unittest.py325 mock_run, argument
330 mock_run.return_value = mock_subproc