Skip to content

Commit af568da

Browse files
committed
fix test and repr
1 parent 32fabb9 commit af568da

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pymongo/asynchronous/mongo_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ def option_repr(option: str, value: Any) -> str:
12571257
]
12581258
]
12591259
else:
1260-
options = []
1260+
options = ["host={self._host}", "port={self._port}"]
12611261
# ... then everything in self._constructor_args...
12621262
options.extend(
12631263
option_repr(key, self._options._options[key]) for key in self._constructor_args

pymongo/synchronous/mongo_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ def option_repr(option: str, value: Any) -> str:
12551255
]
12561256
]
12571257
else:
1258-
options = []
1258+
options = ["host={self._host}", "port={self._port}"]
12591259
# ... then everything in self._constructor_args...
12601260
options.extend(
12611261
option_repr(key, self._options._options[key]) for key in self._constructor_args

test/asynchronous/test_discovery_and_monitoring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282

8383
async def create_mock_topology(uri, monitor_class=DummyMonitor):
84-
parsed_uri = parse_uri(uri)
84+
parsed_uri = await parse_uri(uri)
8585
replica_set_name = None
8686
direct_connection = None
8787
load_balanced = None

0 commit comments

Comments
 (0)