File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,10 @@ async def test_gssapi_simple(self):
168
168
await client [GSSAPI_DB ].collection .find_one ()
169
169
170
170
# Log in using URI, with authMechanismProperties.
171
- mech_uri = uri + f"&authMechanismProperties={ self .mech_properties } "
171
+ mech_properties_str = ""
172
+ for key , value in self .mech_properties :
173
+ mech_properties_str += f"{ key } :{ value } ,"
174
+ mech_uri = uri + f"&authMechanismProperties={ mech_properties_str [:- 1 ]} "
172
175
client = self .simple_client (mech_uri )
173
176
await client [GSSAPI_DB ].collection .find_one ()
174
177
Original file line number Diff line number Diff line change @@ -168,7 +168,10 @@ def test_gssapi_simple(self):
168
168
client [GSSAPI_DB ].collection .find_one ()
169
169
170
170
# Log in using URI, with authMechanismProperties.
171
- mech_uri = uri + f"&authMechanismProperties={ self .mech_properties } "
171
+ mech_properties_str = ""
172
+ for key , value in self .mech_properties :
173
+ mech_properties_str += f"{ key } :{ value } ,"
174
+ mech_uri = uri + f"&authMechanismProperties={ mech_properties_str [:- 1 ]} "
172
175
client = self .simple_client (mech_uri )
173
176
client [GSSAPI_DB ].collection .find_one ()
174
177
You can’t perform that action at this time.
0 commit comments