Skip to content

Commit 98593d0

Browse files
committed
case_sparql_select: Update JSON index and orient parameter combinations
A follow-on patch will regenerate Make-managed files. References: * pandas-dev/pandas#52143 Signed-off-by: Alex Nelson <[email protected]>
1 parent e02ccf7 commit 98593d0

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

tests/case_utils/case_sparql_select/test_data_frame_to_table_text_json.py

+15-3
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,22 @@ def make_data_frame_to_json_table_text_parameters() -> (
5555
"values",
5656
]:
5757
# Handle incompatible parameter pairings for JSON mode.
58-
if use_index is False:
59-
if json_orient not in {"split", "table"}:
58+
if use_index is True:
59+
if json_orient not in {
60+
"columns",
61+
"index",
62+
"split",
63+
"table",
64+
}:
65+
continue
66+
elif use_index is False:
67+
if json_orient not in {
68+
"records",
69+
"split",
70+
"table",
71+
"values",
72+
}:
6073
continue
61-
6274
yield (json_orient, output_mode, use_header, use_index)
6375
else:
6476
yield ("columns", output_mode, use_header, use_index)

0 commit comments

Comments
 (0)