(self)
| 1500 | |
| 1501 | class TestRawBatchCursor(IntegrationTest): |
| 1502 | def test_find_raw(self): |
| 1503 | c = self.db.test |
| 1504 | c.drop() |
| 1505 | docs = [{"_id": i, "x": 3.0 * i} for i in range(10)] |
| 1506 | c.insert_many(docs) |
| 1507 | batches = c.find_raw_batches().sort("_id").to_list() |
| 1508 | self.assertEqual(1, len(batches)) |
| 1509 | self.assertEqual(docs, decode_all(batches[0])) |
| 1510 | |
| 1511 | @client_context.require_transactions |
| 1512 | def test_find_raw_transaction(self): |
nothing calls this directly
no test coverage detected