We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e897be9 commit 0c1fa20Copy full SHA for 0c1fa20
test/test_versioned_api.py
@@ -18,9 +18,9 @@
18
19
sys.path[0:0] = [""]
20
21
-from test.asynchronous import unittest
+from test import unittest
22
23
-from pymongo.asynchronous.mongo_client import AsyncMongoClient
+from pymongo.mongo_client import MongoClient
24
from pymongo.server_api import ServerApi, ServerApiVersion
25
26
@@ -51,7 +51,7 @@ def test_server_api_validation(self):
51
with self.assertRaises(TypeError):
52
ServerApi("1", deprecation_errors="not-a-bool") # type: ignore[arg-type]
53
54
- AsyncMongoClient(server_api="not-a-ServerApi")
+ MongoClient(server_api="not-a-ServerApi")
55
56
def assertServerApi(self, event):
57
self.assertIn("apiVersion", event.command)
0 commit comments