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):
168168 await client [GSSAPI_DB ].collection .find_one ()
169169
170170 # 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 ]} "
172175 client = self .simple_client (mech_uri )
173176 await client [GSSAPI_DB ].collection .find_one ()
174177
Original file line number Diff line number Diff line change @@ -168,7 +168,10 @@ def test_gssapi_simple(self):
168168 client [GSSAPI_DB ].collection .find_one ()
169169
170170 # 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 ]} "
172175 client = self .simple_client (mech_uri )
173176 client [GSSAPI_DB ].collection .find_one ()
174177
You can’t perform that action at this time.
0 commit comments