Lines Matching refs:mock

22 from unittest import mock
53 @mock.patch('os.getcwd')
54 @mock.patch('os.path.isabs')
55 @mock.patch.object(common_util, 'get_android_root_dir')
58 mod_info = mock.MagicMock()
94 @mock.patch('os.getcwd')
95 @mock.patch.object(common_util, 'is_android_root')
96 @mock.patch.object(common_util, 'get_android_root_dir')
102 mod_info = mock.MagicMock()
136 @mock.patch.object(common_util, 'is_android_root')
137 @mock.patch.object(common_util, 'get_related_paths')
140 mod_info = mock.MagicMock()
152 @mock.patch.object(common_util, 'get_android_root_dir')
153 @mock.patch.object(common_util, 'has_build_target')
154 @mock.patch('os.path.isdir')
155 @mock.patch.object(common_util, 'get_related_paths')
159 mod_info = mock.MagicMock()
192 @mock.patch.object(common_util, 'check_module')
195 mod_info = mock.MagicMock()
204 @mock.patch.object(common_util, 'get_android_root_dir')
224 @mock.patch.object(logging, 'basicConfig')
240 @mock.patch.object(common_util, '_check_modules')
241 @mock.patch.object(module_info, 'ModuleInfo')
251 @mock.patch('builtins.open', create=True)
257 mock.mock_open(read_data=expacted_data1).return_value
262 @mock.patch('os.getenv')
263 @mock.patch.object(common_util, 'get_android_root_dir')
282 mod_info = mock.MagicMock()
289 @mock.patch('os.path.expanduser')
308 @mock.patch.object(common_util, '_show_env_setup_msg_and_exit')
309 @mock.patch('os.environ.get')
334 @mock.patch.object(common_util, 'get_blueprint_json_path')
335 @mock.patch.object(common_util, 'get_android_out_dir')
336 @mock.patch.object(common_util, 'get_android_root_dir')
355 @mock.patch('os.environ.get')
382 @mock.patch.object(os.path, 'exists')
383 @mock.patch.object(common_util, 'get_android_root_dir')