Skip to content

Commit fe263bb

Browse files
committed
fix tests
1 parent 4dd2985 commit fe263bb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/system/small/test_dataframe_io.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def test_load_json_w_json_string_items(session):
316316

317317
# Verifies JSON strings preserve array order, regardless of dictionary key order.
318318
assert df["json_col"][6] == '{"a":1,"b":2}'
319-
assert df["json_col"][7] == '{"dict":{"array":[{"bar":"hello"},{"foo":1}],"int":1}}'
319+
assert df["json_col"][7] == '{"dict":{"array":[{"foo":1},{"bar":"hello"}],"int":1}}'
320320

321321

322322
def test_load_json_to_pandas_has_correct_result(session):
@@ -355,7 +355,7 @@ def test_load_json_in_struct(session):
355355
'dict',
356356
JSON_OBJECT(
357357
'int', 1,
358-
'array', [JSON_OBJECT('bar', 'hello'), JSON_OBJECT('foo', 1)]
358+
'array', [JSON_OBJECT('foo', 1), JSON_OBJECT('bar', 'hello')]
359359
)
360360
), 7),
361361
"""
@@ -373,7 +373,7 @@ def test_load_json_in_struct(session):
373373
assert data[3] == '{"string":"hello world"}'
374374
assert data[4] == '{"array":[8,9,10]}'
375375
assert data[5] == '{"null":null}'
376-
assert data[6] == '{"dict":{"array":[{"bar":"hello"},{"foo":1}],"int":1}}'
376+
assert data[6] == '{"dict":{"array":[{"foo":1},{"bar":"hello"}],"int":1}}'
377377

378378

379379
def test_load_json_in_array(session):

tests/system/small/test_series.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ def test_series_construct_w_dtype_for_json():
317317
assert s[0] == "1"
318318
assert s[1] == '"str"'
319319
assert s[2] == "false"
320-
# TODO: check old branch results for null.
321320
assert s[3] == '["a",{"b":1},null]'
322321
assert pd.isna(s[4])
323322
assert s[5] == '{"a":{"b":[1,2,3],"c":true}}'

0 commit comments

Comments
 (0)