Skip to content

Commit d39e968

Browse files
committed
PYTHON-5993 Restore the prose test 4 name for the sent cursor id test
DRIVERS-3598 re-added the spec prose test for this assertion, so the driver test carries its number again.
1 parent cd4159d commit d39e968

2 files changed

Lines changed: 6 additions & 16 deletions

File tree

test/asynchronous/test_otel_getmore.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,10 @@ async def test_abandoned_cursor_still_ends_operation_span(self):
281281
]
282282
self.assertEqual(len(find_op_spans), 1)
283283

284-
async def test_get_more_records_sent_cursor_id_not_returned_cursor_id(self):
285-
"""getMore records the cursor id it sent, not the cursor id returned.
286-
287-
Was prose test 3 until DRIVERS-3598 replaced it with $$gte: 1 in the
288-
unified fixtures. Kept because it asserts equality with the id sent,
289-
which a lower bound cannot express.
290-
"""
284+
async def test_prose_4_get_more_records_sent_cursor_id_not_returned_cursor_id(self):
285+
"""Prose Test 4: getMore records the cursor id it sent, not the cursor id returned."""
291286
client = await self.async_rs_or_single_client(tracing={"enabled": True})
292-
coll = client.pymongo_test.getmore_sent_cursor_id
287+
coll = client.pymongo_test.prose4_getmore_cursor_id
293288
await coll.drop()
294289
await coll.insert_many([{"i": i} for i in range(3)])
295290
self.exporter.clear()

test/test_otel_getmore.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,10 @@ def test_abandoned_cursor_still_ends_operation_span(self):
281281
]
282282
self.assertEqual(len(find_op_spans), 1)
283283

284-
def test_get_more_records_sent_cursor_id_not_returned_cursor_id(self):
285-
"""getMore records the cursor id it sent, not the cursor id returned.
286-
287-
Was prose test 3 until DRIVERS-3598 replaced it with $$gte: 1 in the
288-
unified fixtures. Kept because it asserts equality with the id sent,
289-
which a lower bound cannot express.
290-
"""
284+
def test_prose_4_get_more_records_sent_cursor_id_not_returned_cursor_id(self):
285+
"""Prose Test 4: getMore records the cursor id it sent, not the cursor id returned."""
291286
client = self.rs_or_single_client(tracing={"enabled": True})
292-
coll = client.pymongo_test.getmore_sent_cursor_id
287+
coll = client.pymongo_test.prose4_getmore_cursor_id
293288
coll.drop()
294289
coll.insert_many([{"i": i} for i in range(3)])
295290
self.exporter.clear()

0 commit comments

Comments
 (0)