示例#1
0
  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")
    ]
示例#2
0
    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)
示例#4
0
 def setUp(self):
   utils.patch_retry(self, utils)
   self.tmpdir = tempfile.mkdtemp()
示例#5
0
 def setUp(self):
     test_utils.patch_retry(self, utils)
示例#6
0
 def setUp(self):
   self._mock_result = mock.Mock()
   patch_retry(self, bq_verifier)
 def setUp(self):
     self._mock_result = Mock()
     patch_retry(self, verifiers)
示例#8
0
 def setUp(self):
     self._mock_datastore = mock.MagicMock()
     patch_retry(self, helper)
示例#9
0
 def setUp(self):
     self._mock_result = Mock()
     patch_retry(self, utils)
示例#10
0
 def setUp(self):
   patch_retry(self, datastoreio)
示例#11
0
 def setUp(self):
   self._mock_result = Mock()
   patch_retry(self, utils)
示例#12
0
 def setUp(self):
   self._mock_datastore = MagicMock()
   self._query = query_pb2.Query()
   self._query.kind.add().name = 'dummy_kind'
   patch_retry(self, helper)
示例#13
0
 def setUp(self):
     patch_retry(self, utils)