PYTHON-4941 - Fix Synchronous unified test runner being used in async… (#1993)
This commit is contained in:
parent
6862e94d17
commit
a9caaf0d6a
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user