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 1515"""Test the client bulk write API."""
1616from __future__ import annotations
1717
18+ import os
1819import sys
1920
2021sys .path [0 :0 ] = ["" ]
@@ -567,6 +568,8 @@ async def test_returns_error_if_auto_encryption_configured(self):
567568# https://github.com/mongodb/specifications/blob/master/source/client-side-operations-timeout/tests/README.md#11-multi-batch-bulkwrites
568569class TestClientBulkWriteCSOT (AsyncIntegrationTest ):
569570 async def asyncSetUp (self ):
571+ if os .environ .get ("SKIP_CSOT_TESTS" , "" ):
572+ raise unittest .SkipTest ("SKIP_CSOT_TESTS is set, skipping..." )
570573 self .max_write_batch_size = await async_client_context .max_write_batch_size
571574 self .max_bson_object_size = await async_client_context .max_bson_size
572575 self .max_message_size_bytes = await async_client_context .max_message_size_bytes
Original file line number Diff line number Diff line change 1515"""Test the client bulk write API."""
1616from __future__ import annotations
1717
18+ import os
1819import sys
1920
2021sys .path [0 :0 ] = ["" ]
@@ -567,6 +568,8 @@ def test_returns_error_if_auto_encryption_configured(self):
567568# https://github.com/mongodb/specifications/blob/master/source/client-side-operations-timeout/tests/README.md#11-multi-batch-bulkwrites
568569class TestClientBulkWriteCSOT (IntegrationTest ):
569570 def setUp (self ):
571+ if os .environ .get ("SKIP_CSOT_TESTS" , "" ):
572+ raise unittest .SkipTest ("SKIP_CSOT_TESTS is set, skipping..." )
570573 self .max_write_batch_size = client_context .max_write_batch_size
571574 self .max_bson_object_size = client_context .max_bson_size
572575 self .max_message_size_bytes = client_context .max_message_size_bytes
You can’t perform that action at this time.
0 commit comments