Skip to content

Commit f9ee737

Browse files
committed
Skip parquet test when pyarrow is not installed
test_create_dataset_from_dataframe_parquet requires pyarrow/fastparquet for pd.to_parquet() and pd.read_parquet(). Skip gracefully in CI environments that don't have it.
1 parent 60410a7 commit f9ee737

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/python/sdk/test_datasets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ def test_create_dataset_from_dataframe(self, client, mock_api):
143143

144144
def test_create_dataset_from_dataframe_parquet(self, client, mock_api):
145145
"""DataFrame with format='parquet' serializes to parquet bytes."""
146+
pytest.importorskip("pyarrow", reason="pyarrow required for parquet support")
146147
df = pd.DataFrame({"x": [10, 20], "y": [30, 40]})
147148
mock_api.add(
148149
responses.POST,

0 commit comments

Comments
 (0)