MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / test_pickle_BulkWriteError

Method test_pickle_BulkWriteError

test/test_errors.py:86–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84 self.assertOperationFailureEqual(exc, pickle.loads(pickle.dumps(exc)))
85
86 def test_pickle_BulkWriteError(self):
87 exc = BulkWriteError({})
88 self.assertOperationFailureEqual(exc, pickle.loads(pickle.dumps(exc)))
89 self.assertIn("batch op errors occurred", str(exc))
90
91 def test_pickle_EncryptionError(self):
92 cause = OperationFailure("error", code=5, details={}, max_wire_version=7)

Callers

nothing calls this directly

Calls 2

BulkWriteErrorClass · 0.90

Tested by

no test coverage detected