Skip to content

Commit 104ae52

Browse files
committed
make encryption's create_test not async
1 parent 3813782 commit 104ae52

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

test/asynchronous/test_encryption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ def allowable_errors(self, op):
739739
return errors
740740

741741

742-
async def create_test(scenario_def, test, name):
742+
def create_test(scenario_def, test, name):
743743
@async_client_context.require_test_commands
744744
async def run_scenario(self):
745745
await self.run_scenario(scenario_def, test)

test/asynchronous/utils_selection_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import datetime
1919
import os
2020
import sys
21+
from test.asynchronous import AsyncPyMongoTestCase
2122

2223
sys.path[0:0] = [""]
2324

test/utils_selection_tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import datetime
1919
import os
2020
import sys
21+
from test.synchronous import PyMongoTestCase
2122

2223
sys.path[0:0] = [""]
2324

@@ -173,7 +174,7 @@ def run_scenario(self):
173174

174175

175176
def create_selection_tests(test_dir):
176-
class TestAllScenarios(unittest.TestCase):
177+
class TestAllScenarios(PyMongoTestCase):
177178
pass
178179

179180
for dirpath, _, filenames in os.walk(test_dir):

0 commit comments

Comments
 (0)