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 b082720 commit 8b444a7Copy full SHA for 8b444a7
pymongo/mongo_client.py
@@ -655,7 +655,7 @@ def __init__(
655
username = None
656
password = None
657
dbase = None
658
- opts = {}
+ opts = common._CaseInsensitiveDictionary()
659
fqdn = None
660
for entity in host:
661
if "://" in entity:
test/test_client.py
@@ -452,6 +452,9 @@ def test_uri_security_options(self):
452
MongoClient('mongodb://localhost/?tlsInsecure=true',
453
connect=False, ssl_cert_reqs=True)
454
455
+ # Conflicting kwargs should raise InvalidURI
456
+ with self.assertRaises(InvalidURI):
457
+ MongoClient(ssl=True, tls=False)
458
459
class TestClient(IntegrationTest):
460
0 commit comments