PYTHON-4692 Skip TestClientBulkWriteCSOT on MacOS and Windows (#1810)
This commit is contained in:
parent
50586baf8d
commit
f4392041b2
@ -15,6 +15,7 @@
|
||||
"""Test the client bulk write API."""
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path[0:0] = [""]
|
||||
@ -567,6 +568,8 @@ class TestClientBulkWriteCRUD(AsyncIntegrationTest):
|
||||
# https://github.com/mongodb/specifications/blob/master/source/client-side-operations-timeout/tests/README.md#11-multi-batch-bulkwrites
|
||||
class TestClientBulkWriteCSOT(AsyncIntegrationTest):
|
||||
async def asyncSetUp(self):
|
||||
if os.environ.get("SKIP_CSOT_TESTS", ""):
|
||||
raise unittest.SkipTest("SKIP_CSOT_TESTS is set, skipping...")
|
||||
self.max_write_batch_size = await async_client_context.max_write_batch_size
|
||||
self.max_bson_object_size = await async_client_context.max_bson_size
|
||||
self.max_message_size_bytes = await async_client_context.max_message_size_bytes
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
"""Test the client bulk write API."""
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path[0:0] = [""]
|
||||
@ -567,6 +568,8 @@ class TestClientBulkWriteCRUD(IntegrationTest):
|
||||
# https://github.com/mongodb/specifications/blob/master/source/client-side-operations-timeout/tests/README.md#11-multi-batch-bulkwrites
|
||||
class TestClientBulkWriteCSOT(IntegrationTest):
|
||||
def setUp(self):
|
||||
if os.environ.get("SKIP_CSOT_TESTS", ""):
|
||||
raise unittest.SkipTest("SKIP_CSOT_TESTS is set, skipping...")
|
||||
self.max_write_batch_size = client_context.max_write_batch_size
|
||||
self.max_bson_object_size = client_context.max_bson_size
|
||||
self.max_message_size_bytes = client_context.max_message_size_bytes
|
||||
|
||||
Loading…
Reference in New Issue
Block a user