Skip to content

Commit 8f32628

Browse files
committed
fix test
1 parent 0a6c064 commit 8f32628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/auth_oidc/test_auth_oidc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ def test_2_6_ALLOWED_HOSTS_defaults_ignored(self):
870870
mongo_creds = _build_credentials_tuple("MONGODB-OIDC", None, None, None, extra, "test")
871871
# Assert that creating an authenticator for example.com does not result in an error.
872872
authenticator = _get_authenticator(mongo_creds, ("example.com", 30))
873-
assert authenticator.properties.username is None
873+
assert authenticator.properties.username == ""
874874

875875
def test_3_1_authentication_failure_with_cached_tokens_fetch_a_new_token_and_retry(self):
876876
# Create a MongoClient and an OIDC callback that implements the provider logic.

0 commit comments

Comments
 (0)