Skip to content

Commit 21687be

Browse files
committed
add docs for other prose tests
1 parent 1eb5dd8 commit 21687be

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

test/asynchronous/test_client_bulk_write.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ async def test_formats_write_error_correctly(self):
8484

8585

8686
# https://github.com/mongodb/specifications/tree/master/source/crud/tests
87+
# Note: tests 1 and 2 are in test_read_write_concern_spec.py
8788
class TestClientBulkWriteCRUD(AsyncIntegrationTest):
8889
async def asyncSetUp(self):
8990
await super().asyncSetUp()
@@ -582,6 +583,8 @@ async def test_upserted_result(self):
582583
self.assertEqual(result.update_results[1].did_upsert, True)
583584
self.assertEqual(result.update_results[2].did_upsert, False)
584585

586+
# Note: test 14 is optional and intentionally no implemented because we do provide multiple APIs to specify explain.
587+
585588
@async_client_context.require_version_min(8, 0, 0, -24)
586589
async def test_15_unacknowledged_write_across_batches(self):
587590
listener = OvertCommandListener()

test/asynchronous/test_read_write_concern_spec.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ async def test_raise_wtimeout(self):
180180
WriteConcern(w=async_client_context.w, wtimeout=1), WTimeoutError
181181
)
182182

183+
# https://github.com/mongodb/specifications/tree/master/source/crud/tests
184+
# Test 1 (included here instead of test_client_bulk_write.py)
183185
@async_client_context.require_failCommand_fail_point
184186
async def test_error_includes_errInfo(self):
185187
expected_wce = {
@@ -214,6 +216,8 @@ async def test_error_includes_errInfo(self):
214216
}
215217
self.assertEqual(ctx.exception.details, expected_details)
216218

219+
# https://github.com/mongodb/specifications/tree/master/source/crud/tests
220+
# Test 2 (included here instead of test_client_bulk_write.py)
217221
@async_client_context.require_version_min(4, 9)
218222
async def test_write_error_details_exposes_errinfo(self):
219223
listener = OvertCommandListener()

test/test_client_bulk_write.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def test_formats_write_error_correctly(self):
8484

8585

8686
# https://github.com/mongodb/specifications/tree/master/source/crud/tests
87+
# Note: tests 1 and 2 are in test_read_write_concern_spec.py
8788
class TestClientBulkWriteCRUD(IntegrationTest):
8889
def setUp(self):
8990
super().setUp()
@@ -578,6 +579,8 @@ def test_upserted_result(self):
578579
self.assertEqual(result.update_results[1].did_upsert, True)
579580
self.assertEqual(result.update_results[2].did_upsert, False)
580581

582+
# Note: test 14 is optional and intentionally no implemented because we do provide multiple APIs to specify explain.
583+
581584
@client_context.require_version_min(8, 0, 0, -24)
582585
def test_15_unacknowledged_write_across_batches(self):
583586
listener = OvertCommandListener()

test/test_read_write_concern_spec.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ def test_raise_wtimeout(self):
178178
self.disable_replication(client_context.client)
179179
self.assertWriteOpsRaise(WriteConcern(w=client_context.w, wtimeout=1), WTimeoutError)
180180

181+
# https://github.com/mongodb/specifications/tree/master/source/crud/tests
182+
# Test 1 (included here instead of test_client_bulk_write.py)
181183
@client_context.require_failCommand_fail_point
182184
def test_error_includes_errInfo(self):
183185
expected_wce = {
@@ -212,6 +214,8 @@ def test_error_includes_errInfo(self):
212214
}
213215
self.assertEqual(ctx.exception.details, expected_details)
214216

217+
# https://github.com/mongodb/specifications/tree/master/source/crud/tests
218+
# Test 2 (included here instead of test_client_bulk_write.py)
215219
@client_context.require_version_min(4, 9)
216220
def test_write_error_details_exposes_errinfo(self):
217221
listener = OvertCommandListener()

0 commit comments

Comments
 (0)