Skip to content

Commit 7818641

Browse files
authored
Add test for TableReport dict method
1 parent 961d687 commit 7818641

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

skrub/_reporting/tests/test_table_report.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,3 +674,8 @@ def test_column_filters_fail(df_module, filter, expected, match):
674674
)
675675
with pytest.raises(expected, match=match):
676676
TableReport(df, column_filters=filter)
677+
678+
679+
def test_table_report_dict(air_quality):
680+
report = TableReport(air_quality)
681+
assert report.dict() == json.loads(report.json())

0 commit comments

Comments
 (0)