Skip to content

Commit bc1716d

Browse files
committed
add tests for string export mode
1 parent 465f186 commit bc1716d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/test_report.py

+15
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,21 @@ def test_show():
9595
report.show()
9696

9797

98+
def test_notebook_export(tmp_path: pathlib.Path):
99+
report = Report(dataframe=_get_test_df())
100+
101+
report.add_overview()
102+
for export_data_mode in (
103+
ExportDataMode.NONE,
104+
ExportDataMode.EMBED,
105+
ExportDataMode.FILE,
106+
"embed",
107+
"none",
108+
"file",
109+
):
110+
report.export_notebook(tmp_path / f"export_{export_data_mode}.ipynb", export_data_mode)
111+
112+
98113
def test_exported_notebook_executes(tmp_path: pathlib.Path):
99114
report = Report(dataframe=_get_test_df())
100115

0 commit comments

Comments
 (0)