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 4d155ac commit 6ec2d51Copy full SHA for 6ec2d51
tests/utils_/test_parse_uri.py
@@ -28,6 +28,8 @@ def test_no_database(self):
28
self.assertIsNone(settings_dict["NAME"])
29
self.assertEqual(settings_dict["HOST"], "cluster0.example.mongodb.net")
30
31
+ # PyMongo will try to resolve the SRV record if the URI has the mongodb+srv:// prefix.
32
+ # https://pymongo.readthedocs.io/en/stable/api/pymongo/mongo_client.html#pymongo.mongo_client.MongoClient
33
@patch("dns.resolver.resolve")
34
def test_srv_uri_with_options(self, mock_resolver):
35
settings_dict = parse_uri(URI)
0 commit comments