Home
last modified time | relevance | path

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

12

/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.py34 @test.mock.patch.object(logging, "warning", autospec=True)
49 @test.mock.patch.object(logging, "warning", autospec=True)
87 @test.mock.patch.object(logging, "warning", autospec=True)
101 @test.mock.patch.object(logging, "warning", autospec=True)
119 @test.mock.patch.object(logging, "warning", autospec=True)
136 @test.mock.patch.object(logging, "warning", autospec=True)
152 @test.mock.patch.object(logging, "warning", autospec=True)
167 @test.mock.patch.object(logging, "warning", autospec=True)
203 @test.mock.patch.object(logging, "warning", autospec=True)
243 @test.mock.patch.object(logging, "warning", autospec=True)
[all …]
Dmodule_wrapper_test.py44 @test.mock.patch.object(logging, 'warning', autospec=True)
Ddispatch_test.py201 @test.mock.patch.object(tf_logging, "warning", autospec=True)
/external/python/apitools/apitools/base/py/
Dcredentials_lib_test.py63 with mock.patch.object(util, 'DetectGce', autospec=True) as gce_detect:
68 autospec=True) as opener_mock:
97 @mock.patch.object(util, 'DetectGce', autospec=True)
108 autospec=True) as opener_mock:
138 autospec=True) as build_opener:
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:
497 autospec=True) as mock_request:
513 autospec=True) as mock_request:
532 autospec=True) as mock_request:
587 autospec=True) as mock_request:
641 autospec=True) as mock_execute:
Dtransfer_test.py107 autospec=True) as make_request:
125 autospec=True) as make_request:
149 autospec=True) as make_request:
177 autospec=True) as make_request:
234 autospec=True) as make_request:
/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/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/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/mock/mock/
Dmock.py1251 spec_set, autospec, new_callable, kwargs argument
1258 if autospec is not None:
1271 self.autospec = autospec
1280 self.autospec, self.new_callable, self.kwargs
1376 autospec, kwargs = self.autospec, self.kwargs
1385 if autospec is False:
1386 autospec = None
1388 if spec is not None and autospec is not None:
1390 if ((spec is not None or autospec is not None) and
1396 if new is DEFAULT and autospec is None:
[all …]
/external/python/cpython3/Lib/unittest/
Dmock.py1251 spec_set, autospec, new_callable, kwargs argument
1258 if autospec is not None:
1271 self.autospec = autospec
1280 self.autospec, self.new_callable, self.kwargs
1387 autospec, kwargs = self.autospec, self.kwargs
1396 if autospec is False:
1397 autospec = None
1399 if spec is not None and autospec is not None:
1401 if ((spec is not None or autospec is not None) and
1407 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/cpython3/Lib/unittest/test/testmock/
Dtestpatch.py638 @patch('%s.SomeClass' % __name__, object(), autospec=True)
940 test = patch(foo_name, autospec=True)(function)
948 test = patch.object(module, 'Foo', autospec=True)(function)
957 @patch('%s.function' % __name__, autospec=True)
977 @patch('%s.function' % __name__, autospec=True,
988 with patch('%s.Foo.static_method' % __name__, autospec=True) as method:
994 with patch('%s.Foo.class_method' % __name__, autospec=True) as method:
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)
[all …]
Dtestwith.py133 with patch.object(c, 'f', autospec=True) as patch1:
134 with patch.object(c, 'f', autospec=True) as patch2:
/external/python/mock/mock/tests/
Dtestpatch.py630 @patch('%s.SomeClass' % __name__, object(), autospec=True)
930 test = patch(foo_name, autospec=True)(function)
938 test = patch.object(module, 'Foo', autospec=True)(function)
947 @patch('%s.function' % __name__, autospec=True)
967 @patch('%s.function' % __name__, autospec=True,
978 with patch('%s.Foo.static_method' % __name__, autospec=True) as method:
984 with patch('%s.Foo.class_method' % __name__, autospec=True) as method:
990 patcher = patch('%s.function' % __name__, new=3, autospec=True)
994 patcher = patch.object(module, 'function', new=3, autospec=True)
1002 patcher = patch(foo_name, autospec=Bar)
[all …]
Dtestwith.py138 with patch.object(c, 'f', autospec=True) as patch1:
139 with patch.object(c, 'f', autospec=True) as patch2:
/external/tensorflow/tensorflow/python/tpu/client/
Dclient_test.py721 time_mock = mock.patch.object(time, 'time', autospec=True).start()
723 sleep_mock = mock.patch.object(time, 'sleep', autospec=True).start()
751 time_mock = mock.patch.object(time, 'time', autospec=True).start()
753 sleep_mock = mock.patch.object(time, 'sleep', autospec=True).start()
/external/python/cpython3/Doc/library/
Dunittest.mock.rst171 Auto-speccing can be done through the *autospec* argument to patch, or the
1335 .. function:: patch(target, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new…
1366 A more powerful form of *spec* is *autospec*. If you set ``autospec=True``
1376 Instead of ``autospec=True`` you can pass ``autospec=some_object`` to use an
1537 …target, attribute, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callabl…
1543 manager. Arguments *new*, *spec*, *create*, *spec_set*, *autospec* and
1686 .. function:: patch.multiple(target, spec=None, create=False, spec_set=None, autospec=None, new_cal…
1701 manager. The arguments *spec*, *spec_set*, *create*, *autospec* and
2337 :func:`create_autospec` and the *autospec* argument to :func:`patch`.
2390 If the mock was created with a *spec* (or *autospec* of course) then all the
[all …]
/external/tensorflow/tensorflow/python/summary/writer/
Dwriter_test.py475 writer_thread, "_ev_writer", autospec=True) as mock_writer:
496 writer_thread, "_ev_writer", autospec=True) as mock_writer:
508 writer_thread, "_ev_writer", autospec=True) as mock_writer:
524 writer_thread, "_ev_writer", autospec=True) as mock_writer:
/external/python/google-api-python-client/tests/
Dtest__auth.py36 with mock.patch("google.auth.default", autospec=True) as default:
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_squeezer.py319 @patch('idlelib.squeezer.Hovertip', autospec=Hovertip)
446 with patch('idlelib.squeezer.view_text', autospec=view_text)\
/external/python/oauth2client/tests/contrib/django_util/
Dtest_decorators.py141 @mock.patch('oauth2client.contrib.django_util.UserOAuth2', autospec=True)

12