()
| 1254 | cursor.close() |
| 1255 | |
| 1256 | def insert_and_aggregate(): |
| 1257 | cursor = (collection.aggregate([], batchSize=1)).batch_size(1) |
| 1258 | for _ in range(5): |
| 1259 | # Advance the cluster time. |
| 1260 | collection.insert_one({}) |
| 1261 | next(cursor) |
| 1262 | |
| 1263 | cursor.close() |
| 1264 | |
| 1265 | def aggregate(): |
| 1266 | (collection.aggregate([])).to_list() |
nothing calls this directly
no test coverage detected