Skip to content

Commit 7e4f921

Browse files
committed
PYTHON-4921 Stop parsing hint into a list
1 parent a2ba494 commit 7e4f921

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

test/utils.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -925,35 +925,6 @@ def parse_spec_options(opts):
925925
if "maxCommitTimeMS" in opts:
926926
opts["max_commit_time_ms"] = opts.pop("maxCommitTimeMS")
927927

928-
if "hint" in opts:
929-
hint = opts.pop("hint")
930-
if not isinstance(hint, str):
931-
hint = list(hint.items())
932-
opts["hint"] = hint
933-
934-
# Properly format 'hint' arguments for the Bulk API tests.
935-
if "requests" in opts:
936-
reqs = opts.pop("requests")
937-
for req in reqs:
938-
if "name" in req:
939-
# CRUD v2 format
940-
args = req.pop("arguments", {})
941-
if "hint" in args:
942-
hint = args.pop("hint")
943-
if not isinstance(hint, str):
944-
hint = list(hint.items())
945-
args["hint"] = hint
946-
req["arguments"] = args
947-
else:
948-
# Unified test format
949-
bulk_model, spec = next(iter(req.items()))
950-
if "hint" in spec:
951-
hint = spec.pop("hint")
952-
if not isinstance(hint, str):
953-
hint = list(hint.items())
954-
spec["hint"] = hint
955-
opts["requests"] = reqs
956-
957928
return dict(opts)
958929

959930

0 commit comments

Comments
 (0)