File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 15
15
"""Test the client bulk write API."""
16
16
from __future__ import annotations
17
17
18
+ import os
18
19
import sys
19
20
20
21
sys .path [0 :0 ] = ["" ]
@@ -567,6 +568,8 @@ async def test_returns_error_if_auto_encryption_configured(self):
567
568
# https://github.com/mongodb/specifications/blob/master/source/client-side-operations-timeout/tests/README.md#11-multi-batch-bulkwrites
568
569
class TestClientBulkWriteCSOT (AsyncIntegrationTest ):
569
570
async def asyncSetUp (self ):
571
+ if os .environ .get ("SKIP_CSOT_TESTS" , "" ):
572
+ raise unittest .SkipTest ("SKIP_CSOT_TESTS is set, skipping..." )
570
573
self .max_write_batch_size = await async_client_context .max_write_batch_size
571
574
self .max_bson_object_size = await async_client_context .max_bson_size
572
575
self .max_message_size_bytes = await async_client_context .max_message_size_bytes
Original file line number Diff line number Diff line change 15
15
"""Test the client bulk write API."""
16
16
from __future__ import annotations
17
17
18
+ import os
18
19
import sys
19
20
20
21
sys .path [0 :0 ] = ["" ]
@@ -567,6 +568,8 @@ def test_returns_error_if_auto_encryption_configured(self):
567
568
# https://github.com/mongodb/specifications/blob/master/source/client-side-operations-timeout/tests/README.md#11-multi-batch-bulkwrites
568
569
class TestClientBulkWriteCSOT (IntegrationTest ):
569
570
def setUp (self ):
571
+ if os .environ .get ("SKIP_CSOT_TESTS" , "" ):
572
+ raise unittest .SkipTest ("SKIP_CSOT_TESTS is set, skipping..." )
570
573
self .max_write_batch_size = client_context .max_write_batch_size
571
574
self .max_bson_object_size = client_context .max_bson_size
572
575
self .max_message_size_bytes = client_context .max_message_size_bytes
You can’t perform that action at this time.
0 commit comments