Skip to content

Commit 1c835ae

Browse files
committed
address review
1 parent c54a7da commit 1c835ae

File tree

4 files changed

+2
-16
lines changed

4 files changed

+2
-16
lines changed

test/asynchronous/test_client_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
)
5050

5151
# Generate unified tests.
52-
globals().update(generate_test_classes(_TEST_PATH, module=__name__, RUN_ON_SERVERLESS=True))
52+
globals().update(generate_test_classes(_TEST_PATH, module=__name__))
5353

5454

5555
def _get_handshake_driver_info(request):

test/asynchronous/unified_format.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,6 @@ async def _collectionOperation_createChangeStream(self, target, *args, **kwargs)
704704
async def _databaseOperation_runCommand(self, target, **kwargs):
705705
self.__raise_if_unsupported("runCommand", target, AsyncDatabase)
706706
# Ensure the first key is the command name.
707-
print(kwargs)
708707
ordered_command = SON([(kwargs.pop("command_name"), 1)])
709708
ordered_command.update(kwargs["command"])
710709
kwargs["command"] = ordered_command
@@ -843,8 +842,6 @@ async def _cursor_close(self, target, *args, **kwargs):
843842
return await target.close()
844843

845844
async def _clientOperation_appendMetadata(self, target, *args, **kwargs):
846-
print("IN MY FUNC")
847-
print(kwargs)
848845
info_opts = kwargs["driver_info_options"]
849846
driver_info = DriverInfo(info_opts["name"], info_opts["version"], info_opts["platform"])
850847
target.append_metadata(driver_info)
@@ -938,7 +935,6 @@ async def run_entity_operation(self, spec):
938935
method_name = f"_clientOperation_{opname}"
939936
elif isinstance(target, AsyncDatabase):
940937
method_name = f"_databaseOperation_{opname}"
941-
print(f"{method_name=}")
942938
elif isinstance(target, AsyncCollection):
943939
method_name = f"_collectionOperation_{opname}"
944940
# contentType is always stored in metadata in pymongo.
@@ -985,7 +981,6 @@ async def run_entity_operation(self, spec):
985981
with pymongo.timeout(timeout):
986982
result = await cmd(**dict(arguments))
987983
else:
988-
print(f"{cmd=} {dict=} {arguments=}")
989984
result = await cmd(**dict(arguments))
990985
except Exception as exc:
991986
# Ignore all operation errors but to avoid masking bugs don't
@@ -1248,7 +1243,6 @@ async def run_special_operation(self, spec):
12481243

12491244
async def run_operations(self, spec):
12501245
for op in spec:
1251-
print(f"{op=}")
12521246
if op["object"] == "testRunner":
12531247
await self.run_special_operation(op)
12541248
else:
@@ -1451,7 +1445,6 @@ async def _run_scenario(self, spec, uri=None):
14511445
await self.check_log_messages(spec["operations"], expect_log_messages)
14521446
else:
14531447
# process operations
1454-
print(f"{spec['operations']=}")
14551448
await self.run_operations(spec["operations"])
14561449

14571450
# process expectEvents

test/test_client_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
)
5050

5151
# Generate unified tests.
52-
globals().update(generate_test_classes(_TEST_PATH, module=__name__, RUN_ON_SERVERLESS=True))
52+
globals().update(generate_test_classes(_TEST_PATH, module=__name__))
5353

5454

5555
def _get_handshake_driver_info(request):

test/unified_format.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,6 @@ def _collectionOperation_createChangeStream(self, target, *args, **kwargs):
701701
def _databaseOperation_runCommand(self, target, **kwargs):
702702
self.__raise_if_unsupported("runCommand", target, Database)
703703
# Ensure the first key is the command name.
704-
print(kwargs)
705704
ordered_command = SON([(kwargs.pop("command_name"), 1)])
706705
ordered_command.update(kwargs["command"])
707706
kwargs["command"] = ordered_command
@@ -840,8 +839,6 @@ def _cursor_close(self, target, *args, **kwargs):
840839
return target.close()
841840

842841
def _clientOperation_appendMetadata(self, target, *args, **kwargs):
843-
print("IN MY FUNC")
844-
print(kwargs)
845842
info_opts = kwargs["driver_info_options"]
846843
driver_info = DriverInfo(info_opts["name"], info_opts["version"], info_opts["platform"])
847844
target.append_metadata(driver_info)
@@ -929,7 +926,6 @@ def run_entity_operation(self, spec):
929926
method_name = f"_clientOperation_{opname}"
930927
elif isinstance(target, Database):
931928
method_name = f"_databaseOperation_{opname}"
932-
print(f"{method_name=}")
933929
elif isinstance(target, Collection):
934930
method_name = f"_collectionOperation_{opname}"
935931
# contentType is always stored in metadata in pymongo.
@@ -976,7 +972,6 @@ def run_entity_operation(self, spec):
976972
with pymongo.timeout(timeout):
977973
result = cmd(**dict(arguments))
978974
else:
979-
print(f"{cmd=} {dict=} {arguments=}")
980975
result = cmd(**dict(arguments))
981976
except Exception as exc:
982977
# Ignore all operation errors but to avoid masking bugs don't
@@ -1235,7 +1230,6 @@ def run_special_operation(self, spec):
12351230

12361231
def run_operations(self, spec):
12371232
for op in spec:
1238-
print(f"{op=}")
12391233
if op["object"] == "testRunner":
12401234
self.run_special_operation(op)
12411235
else:
@@ -1436,7 +1430,6 @@ def _run_scenario(self, spec, uri=None):
14361430
self.check_log_messages(spec["operations"], expect_log_messages)
14371431
else:
14381432
# process operations
1439-
print(f"{spec['operations']=}")
14401433
self.run_operations(spec["operations"])
14411434

14421435
# process expectEvents

0 commit comments

Comments
 (0)