Skip to content

Commit f47f87b

Browse files
committed
testcase update due to merge from main
1 parent bf661c7 commit f47f87b

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

tests/system/small/test_anywidget.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ def paginated_pandas_df() -> pd.DataFrame:
3737
{
3838
"id": [5, 4, 3, 2, 1, 0],
3939
"page_indicator": [
40-
"row_5",
41-
"row_4",
42-
"row_3",
43-
"row_2",
44-
"row_1",
45-
"row_0",
40+
"page_3_row_2",
41+
"page_3_row_1",
42+
"page_2_row_2",
43+
"page_2_row_1",
44+
"page_1_row_2",
45+
"page_1_row_1",
4646
],
4747
"value": [5, 4, 3, 2, 1, 0],
4848
}
@@ -886,7 +886,6 @@ def test_table_widget_multiindex_columns_disables_sorting(multiindex_column_df):
886886
assert widget.orderable_columns == []
887887

888888

889-
# TODO(shuowei): Add tests for custom index and multiindex
890889
def test_repr_mimebundle_should_fallback_to_html_if_anywidget_is_unavailable(
891890
paginated_bf_df: bf.dataframe.DataFrame,
892891
):
@@ -900,9 +899,9 @@ def test_repr_mimebundle_should_fallback_to_html_if_anywidget_is_unavailable(
900899
assert "application/vnd.jupyter.widget-view+json" not in bundle
901900
assert "text/html" in bundle
902901
html = bundle["text/html"]
903-
assert "page_1_row_1" in html
904-
assert "page_1_row_2" in html
905-
assert "page_2_row_1" not in html
902+
assert "page_3_row_2" in html
903+
assert "page_3_row_1" in html
904+
assert "page_1_row_1" not in html
906905

907906

908907
def test_repr_mimebundle_should_return_widget_view_if_anywidget_is_available(

0 commit comments

Comments
 (0)