def setUp(self): self._mock_datastore = MagicMock() self._query = query_pb2.Query() self._query.kind.add().name = 'dummy_kind' patch_retry(self, helper) self._retriable_errors = [ RPCError("dummy", code_pb2.INTERNAL, "failed"), SocketError(errno.ECONNRESET, "Connection Reset"), SocketError(errno.ETIMEDOUT, "Timed out") ] self._non_retriable_errors = [ RPCError("dummy", code_pb2.UNAUTHENTICATED, "failed"), SocketError(errno.EADDRNOTAVAIL, "Address not available") ]
def setUp(self): self._mock_result = Mock() patch_retry(self, verifiers)
def setUp(self): utils.patch_retry(self, utils) self.tmpdir = tempfile.mkdtemp()
def setUp(self): test_utils.patch_retry(self, utils)
def setUp(self): self._mock_result = mock.Mock() patch_retry(self, bq_verifier)
def setUp(self): self._mock_datastore = mock.MagicMock() patch_retry(self, helper)
def setUp(self): self._mock_result = Mock() patch_retry(self, utils)
def setUp(self): patch_retry(self, datastoreio)
def setUp(self): self._mock_datastore = MagicMock() self._query = query_pb2.Query() self._query.kind.add().name = 'dummy_kind' patch_retry(self, helper)
def setUp(self): patch_retry(self, utils)