1212from skrub import TableReport , ToDatetime
1313from skrub import _dataframe as sbd
1414from skrub ._reporting ._sample_table import make_table
15- from skrub .conftest import polars_installed_without_pyarrow
15+ from skrub .conftest import skip_polars_installed_without_pyarrow
1616
1717
1818@pytest .fixture
@@ -34,7 +34,7 @@ def get_report_id(html):
3434 return re .search (r'<skrub-table-report.*?id="report_([a-z0-9]+)"' , html ).group (1 )
3535
3636
37- @polars_installed_without_pyarrow
37+ @skip_polars_installed_without_pyarrow
3838def test_report (air_quality ):
3939 col_filt = {
4040 "first_2" : {
@@ -82,13 +82,13 @@ def test_report(air_quality):
8282 assert len (all_report_ids ) == len (set (all_report_ids ))
8383
8484
85- @polars_installed_without_pyarrow
85+ @skip_polars_installed_without_pyarrow
8686def test_few_columns (df_module , check_polars_numpy2 ):
8787 report = TableReport (df_module .example_dataframe )
8888 assert "First 10 columns" not in report .html ()
8989
9090
91- @polars_installed_without_pyarrow
91+ @skip_polars_installed_without_pyarrow
9292def test_few_rows (df_module , check_polars_numpy2 ):
9393 df = sbd .slice (df_module .example_dataframe , 2 )
9494 TableReport (df ).html ()
@@ -104,15 +104,15 @@ def test_open(pd_module, browser_mock):
104104 assert b"the title" in browser_mock .content
105105
106106
107- @polars_installed_without_pyarrow
107+ @skip_polars_installed_without_pyarrow
108108def test_non_hashable_values (df_module ):
109109 # non-regression test for #1066
110110 df = df_module .make_dataframe (dict (a = [[1 , 2 , 3 ], None , [4 ]]))
111111 html = TableReport (df ).html ()
112112 assert "[1, 2, 3]" in html
113113
114114
115- @polars_installed_without_pyarrow
115+ @skip_polars_installed_without_pyarrow
116116def test_nat (df_module ):
117117 # non-regression for:
118118 # https://github.com/skrub-data/skrub/issues/1111
@@ -125,7 +125,7 @@ def test_nat(df_module):
125125 TableReport (df ).html ()
126126
127127
128- @polars_installed_without_pyarrow
128+ @skip_polars_installed_without_pyarrow
129129def test_bool_column_mean (df_module ):
130130 df = df_module .make_dataframe ({"a" : [True , False , True , True , False , True ]})
131131 html = TableReport (df ).html ()
@@ -139,7 +139,7 @@ def test_duplicate_columns(pd_module):
139139 TableReport (df ).html ()
140140
141141
142- @polars_installed_without_pyarrow
142+ @skip_polars_installed_without_pyarrow
143143def test_infinite_values (df_module ):
144144 # Non-regression for https://github.com/skrub-data/skrub/issues/1134
145145 # (histogram plot failing with infinite values)
@@ -153,7 +153,7 @@ def test_infinite_values(df_module):
153153 TableReport (df ).html ()
154154
155155
156- @polars_installed_without_pyarrow
156+ @skip_polars_installed_without_pyarrow
157157def test_duration (df_module ):
158158 df = df_module .make_dataframe (
159159 {"a" : [datetime .timedelta (days = 2 ), datetime .timedelta (days = 3 )]}
@@ -212,7 +212,7 @@ def test_write_html_with_not_utf8_encoding(tmp_path, pd_module):
212212 assert "</html>" not in saved_content
213213
214214
215- @polars_installed_without_pyarrow
215+ @skip_polars_installed_without_pyarrow
216216def test_verbosity_parameter (df_module , capsys ):
217217 df = df_module .make_dataframe (
218218 dict (
@@ -235,7 +235,7 @@ def test_verbosity_parameter(df_module, capsys):
235235 assert capsys .readouterr ().err != ""
236236
237237
238- @polars_installed_without_pyarrow
238+ @skip_polars_installed_without_pyarrow
239239def test_write_to_stderr (df_module , capsys ):
240240 df = df_module .make_dataframe (
241241 dict (
@@ -256,7 +256,7 @@ def test_write_to_stderr(df_module, capsys):
256256 assert re .search (pattern , captured .err )
257257
258258
259- @polars_installed_without_pyarrow
259+ @skip_polars_installed_without_pyarrow
260260def test_max_plot_columns_parameter (df_module ):
261261 df = df_module .make_dataframe (
262262 {f"col_{ i } " : [i + j for j in range (3 )] for i in range (10 )}
@@ -316,7 +316,7 @@ def test_error_input_type(simple_df, simple_series):
316316 TableReport (df )
317317
318318
319- @polars_installed_without_pyarrow
319+ @skip_polars_installed_without_pyarrow
320320def test_single_column_report (df_module ):
321321 # Check that single column report works
322322 single_col = df_module .example_column
0 commit comments