@@ -859,15 +859,15 @@ def test_2_6_ALLOWED_HOSTS_defaults_ignored(self):
859
859
# Create a MongoCredential for OIDC with a machine callback.
860
860
props = {"OIDC_CALLBACK" : self .create_request_cb ()}
861
861
extra = dict (authmechanismproperties = props )
862
- mongo_creds = _build_credentials_tuple ("MONGODB-OIDC" , "" , "foo" , "" , extra , "test" )
862
+ mongo_creds = _build_credentials_tuple ("MONGODB-OIDC" , None , "foo" , None , extra , "test" )
863
863
# Assert that creating an authenticator for example.com does not result in an error.
864
864
authenticator = _get_authenticator (mongo_creds , ("example.com" , 30 ))
865
865
assert authenticator .properties .username == "foo"
866
866
867
867
# Create a MongoCredential for OIDC with an ENVIRONMENT.
868
868
props = {"ENVIRONMENT" : "test" }
869
869
extra = dict (authmechanismproperties = props )
870
- mongo_creds = _build_credentials_tuple ("MONGODB-OIDC" , "" , "" , "" , extra , "test" )
870
+ mongo_creds = _build_credentials_tuple ("MONGODB-OIDC" , None , None , None , extra , "test" )
871
871
# Assert that creating an authenticator for example.com does not result in an error.
872
872
authenticator = _get_authenticator (mongo_creds , ("example.com" , 30 ))
873
873
assert authenticator .properties .username is None
0 commit comments