Home
last modified time | relevance | path

Searched refs:autospec (Results 1 – 25 of 39) sorted by relevance

12

/external/python/apitools/apitools/scripts/
Doauth2l_test.py84 autospec=True) as mock_credentials:
92 autospec=True) as mock_credentials:
101 autospec=True) as mock_credentials:
110 autospec=True) as mock_credentials:
124 autospec=True) as mock_credentials:
138 autospec=True) as mock_credentials:
173 autospec=True) as mock_fetch:
176 autospec=True) as mock_get_scopes:
190 autospec=True) as mock_fetch:
193 autospec=True) as mock_validate:
[all …]
/external/autotest/site_utils/
Ddeploy_server_local_unittest.py89 @mock.patch('subprocess.check_output', autospec=True)
109 @mock.patch('subprocess.check_output', autospec=True)
132 @mock.patch('subprocess.check_output', autospec=True)
142 @mock.patch('subprocess.check_output', autospec=True)
160 @mock.patch('subprocess.check_output', autospec=True)
190 @mock.patch('subprocess.check_call', autospec=True)
201 @mock.patch('subprocess.check_output', autospec=True)
211 @mock.patch.object(dsl, 'restart_service', autospec=True)
219 with mock.patch.object(dsl, 'service_status', autospec=True,
250 @mock.patch('subprocess.check_output', autospec=True)
[all …]
/external/python/oauth2client/tests/contrib/
Dtest_keyring_storage.py66 autospec=True) as get_password:
84 autospec=True) as set_password:
100 autospec=True) as set_password:
107 autospec=True) as get_password:
116 autospec=True) as get_password:
140 autospec=True) as get_password:
143 autospec=True) as set_password:
155 autospec=True) as get_password:
Dtest_appengine.py184 autospec=True) as get_access_token:
678 autospec=True) as parse_state_value:
747 autospec=True) as parse_state_value:
794 autospec=True) as parse_state_value:
996 return_value=None, autospec=True):
/external/tensorflow/tensorflow/python/util/
Ddeprecation_test.py31 @test.mock.patch.object(logging, "warning", autospec=True)
47 @test.mock.patch.object(logging, "warning", autospec=True)
86 @test.mock.patch.object(logging, "warning", autospec=True)
100 @test.mock.patch.object(logging, "warning", autospec=True)
136 @test.mock.patch.object(logging, "warning", autospec=True)
177 @test.mock.patch.object(logging, "warning", autospec=True)
218 @test.mock.patch.object(logging, "warning", autospec=True)
244 @test.mock.patch.object(logging, "warning", autospec=True)
270 @test.mock.patch.object(logging, "warning", autospec=True)
315 @test.mock.patch.object(logging, "warning", autospec=True)
[all …]
/external/autotest/frontend/afe/
Drpc_utils_unittest.py106 @mock.patch.object(rpc_utils, 'bucket_hosts_by_shard', autospec=True)
115 @mock.patch.object(rpc_utils, 'bucket_hosts_by_shard', autospec=True)
123 @mock.patch.object(rpc_utils, 'bucket_hosts_by_shard', autospec=True)
131 @mock.patch.object(rpc_utils, 'bucket_hosts_by_shard', autospec=True)
/external/autotest/venv/lucifer/
Dautotest_unittest.py48 with mock.patch('importlib.import_module', autospec=True) \
67 with mock.patch('importlib.import_module', autospec=True) \
79 with mock.patch('importlib.import_module', autospec=True) \
Dloglib_unittest.py23 autospec=True) as dictConfig:
33 autospec=True) as configure:
/external/tensorflow/tensorflow/python/debug/cli/
Devaluator_test.py154 dump, "get_tensors", side_effect=fake_get_tensors, autospec=True):
171 dump, "get_tensors", side_effect=fake_get_tensors, autospec=True):
185 dump, "get_tensors", side_effect=fake_get_tensors, autospec=True):
207 dump, "get_tensors", side_effect=fake_get_tensors, autospec=True):
227 dump, "get_tensors", side_effect=fake_get_tensors, autospec=True):
241 dump, "get_tensors", side_effect=fake_get_tensors, autospec=True):
/external/python/apitools/apitools/base/py/
Dbatch_test.py115 autospec=True) as mock_request:
174 autospec=True) as mock_request:
256 autospec=True) as mock_request:
285 autospec=True) as mock_request:
479 autospec=True) as mock_request:
495 autospec=True) as mock_request:
514 autospec=True) as mock_request:
580 autospec=True) as mock_execute:
Dcredentials_lib_test.py45 autospec=True) as opener_mock:
47 autospec=True) as mock_detect:
73 autospec=True) as build_opener:
Dtransfer_test.py106 autospec=True) as make_request:
134 autospec=True) as make_request:
191 autospec=True) as make_request:
/external/pdfium/third_party/pymock/
Dmock.py1118 spec_set, autospec, new_callable, kwargs argument
1125 if autospec is not None:
1138 self.autospec = autospec
1147 self.autospec, self.new_callable, self.kwargs
1250 autospec, kwargs = self.autospec, self.kwargs
1259 if autospec is False:
1260 autospec = None
1262 if spec is not None and autospec is not None:
1264 if ((spec is not None or autospec is not None) and
1270 if new is DEFAULT and autospec is None:
[all …]
/external/python/cpython2/Lib/test/
D_mock_backport.py1071 spec_set, autospec, new_callable, kwargs argument
1078 if autospec is not None:
1091 self.autospec = autospec
1100 self.autospec, self.new_callable, self.kwargs
1196 autospec, kwargs = self.autospec, self.kwargs
1205 if autospec is False:
1206 autospec = None
1208 if spec is not None and autospec is not None:
1210 if ((spec is not None or autospec is not None) and
1216 if new is DEFAULT and autospec is None:
[all …]
/external/python/cpython3/Lib/unittest/
Dmock.py1125 spec_set, autospec, new_callable, kwargs argument
1132 if autospec is not None:
1145 self.autospec = autospec
1154 self.autospec, self.new_callable, self.kwargs
1250 autospec, kwargs = self.autospec, self.kwargs
1259 if autospec is False:
1260 autospec = None
1262 if spec is not None and autospec is not None:
1264 if ((spec is not None or autospec is not None) and
1270 if new is DEFAULT and autospec is None:
[all …]
/external/python/mock/mock/
Dmock.py1226 spec_set, autospec, new_callable, kwargs argument
1233 if autospec is not None:
1246 self.autospec = autospec
1255 self.autospec, self.new_callable, self.kwargs
1351 autospec, kwargs = self.autospec, self.kwargs
1360 if autospec is False:
1361 autospec = None
1363 if spec is not None and autospec is not None:
1365 if ((spec is not None or autospec is not None) and
1371 if new is DEFAULT and autospec is None:
[all …]
/external/autotest/server/hosts/
Dfile_store_unittest.py122 @mock.patch('chromite.lib.locking.FileLock', autospec=True)
142 @mock.patch('chromite.lib.locking.FileLock', autospec=True)
167 @mock.patch('chromite.lib.locking.FileLock', autospec=True)
/external/autotest/client/common_lib/cros/
Dretry_unittest.py34 patcher = mock.patch('time.sleep', autospec=True)
38 patcher = mock.patch('time.time', autospec=True)
/external/python/mock/mock/tests/
Dtestpatch.py638 @patch('%s.SomeClass' % __name__, object(), autospec=True)
958 test = patch(foo_name, autospec=True)(function)
966 test = patch.object(module, 'Foo', autospec=True)(function)
975 @patch('%s.function' % __name__, autospec=True)
989 @patch('%s.function' % __name__, autospec=True,
1000 patcher = patch('%s.function' % __name__, new=3, autospec=True)
1004 patcher = patch.object(module, 'function', new=3, autospec=True)
1012 patcher = patch(foo_name, autospec=Bar)
1023 patcher = patch(foo_name, autospec=True)
1033 patcher = patch(foo_name, autospec=True)
[all …]
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestpatch.py634 @patch('%s.SomeClass' % __name__, object(), autospec=True)
971 test = patch(foo_name, autospec=True)(function)
979 test = patch.object(module, 'Foo', autospec=True)(function)
988 @patch('%s.function' % __name__, autospec=True)
1008 @patch('%s.function' % __name__, autospec=True,
1019 patcher = patch('%s.function' % __name__, new=3, autospec=True)
1023 patcher = patch.object(module, 'function', new=3, autospec=True)
1031 patcher = patch(foo_name, autospec=Bar)
1042 patcher = patch(foo_name, autospec=True)
1052 patcher = patch(foo_name, autospec=True)
[all …]
Dtestwith.py136 with patch.object(c, 'f', autospec=True) as patch1:
137 with patch.object(c, 'f', autospec=True) as patch2:
/external/tensorflow/tensorflow/contrib/framework/python/framework/
Dexperimental_test.py29 @test.mock.patch.object(logging, "warning", autospec=True)
/external/python/cpython3/Doc/library/
Dunittest.mock.rst155 Auto-speccing can be done through the *autospec* argument to patch, or the
1058 .. function:: patch(target, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new…
1087 A more powerful form of *spec* is *autospec*. If you set ``autospec=True``
1097 Instead of ``autospec=True`` you can pass ``autospec=some_object`` to use an
1253 …target, attribute, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callabl…
1259 manager. Arguments *new*, *spec*, *create*, *spec_set*, *autospec* and
1372 .. function:: patch.multiple(target, spec=None, create=False, spec_set=None, autospec=None, new_cal…
1387 manager. The arguments *spec*, *spec_set*, *create*, *autospec* and
2013 :func:`create_autospec` and the *autospec* argument to :func:`patch`.
2060 If the mock was created with a *spec* (or *autospec* of course) then all the
[all …]
/external/tensorflow/tensorflow/contrib/learn/python/learn/
Dmonitors_test.py319 @test.mock.patch.object(estimators, 'Estimator', autospec=True)
338 @test.mock.patch.object(estimators, 'Estimator', autospec=True)
358 @test.mock.patch.object(estimators, 'Estimator', autospec=True)
377 @test.mock.patch.object(estimators, 'Estimator', autospec=True)
/external/python/google-api-python-client/tests/
Dtest__auth.py36 with mock.patch('google.auth.default', autospec=True) as default:

12