PYTHON-4941 - Fix Synchronous unified test runner being used in async… (#1993)

This commit is contained in:
Noah Stapp 2024-11-04 09:24:29 -05:00 committed by GitHub
parent 6862e94d17
commit a9caaf0d6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 7 additions and 7 deletions

View File

@ -25,7 +25,7 @@ from test.asynchronous import AsyncPyMongoTestCase
sys.path[0:0] = [""]
from test import unittest
from test.unified_format import generate_test_classes
from test.asynchronous.unified_format import generate_test_classes
from pymongo import AsyncMongoClient
from pymongo.asynchronous.auth_oidc import OIDCCallback

View File

@ -35,7 +35,7 @@ from test.asynchronous import (
async_client_context,
unittest,
)
from test.unified_format import generate_test_classes
from test.asynchronous.unified_format import generate_test_classes
from test.utils import (
AllowListEventListener,
EventListener,

View File

@ -22,7 +22,7 @@ import sys
sys.path[0:0] = [""]
from test import unittest
from test.unified_format import generate_test_classes
from test.asynchronous.unified_format import generate_test_classes
_IS_SYNC = False

View File

@ -22,7 +22,7 @@ import sys
sys.path[0:0] = [""]
from test import unittest
from test.unified_format import generate_test_classes
from test.asynchronous.unified_format import generate_test_classes
_IS_SYNC = False

View File

@ -46,6 +46,7 @@ from test import (
unittest,
)
from test.asynchronous.test_bulk import AsyncBulkTestBase
from test.asynchronous.unified_format import generate_test_classes
from test.asynchronous.utils_spec_runner import AsyncSpecRunner
from test.helpers import (
AWS_CREDS,
@ -56,7 +57,6 @@ from test.helpers import (
KMIP_CREDS,
LOCAL_MASTER_KEY,
)
from test.unified_format import generate_test_classes
from test.utils import (
AllowListEventListener,
OvertCommandListener,

View File

@ -862,7 +862,7 @@ class UnifiedSpecTestMixinV1(AsyncIntegrationTest):
return await target.create_data_key(*args, **kwargs)
async def _clientEncryptionOperation_getKeys(self, target, *args, **kwargs):
return await (await target.get_keys(*args, **kwargs)).to_list()
return await target.get_keys(*args, **kwargs).to_list()
async def _clientEncryptionOperation_deleteKey(self, target, *args, **kwargs):
result = await target.delete_key(*args, **kwargs)

View File

@ -858,7 +858,7 @@ class UnifiedSpecTestMixinV1(IntegrationTest):
return target.create_data_key(*args, **kwargs)
def _clientEncryptionOperation_getKeys(self, target, *args, **kwargs):
return (target.get_keys(*args, **kwargs)).to_list()
return target.get_keys(*args, **kwargs).to_list()
def _clientEncryptionOperation_deleteKey(self, target, *args, **kwargs):
result = target.delete_key(*args, **kwargs)