Skip to content

Commit 5dedf1f

Browse files
committed
tests: test arrow write should error
1 parent 6775444 commit 5dedf1f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pins/tests/test_drivers.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,21 @@ def test_driver_roundtrip(tmp_dir2, type_):
7676
assert df.equals(obj)
7777

7878

79+
def test_driver_arrow_write_error(tmp_dir2):
80+
import pandas as pd
81+
82+
df = pd.DataFrame({"x": [1, 2, 3]})
83+
84+
fname = "some_df"
85+
86+
p_obj = tmp_dir2 / fname
87+
88+
with pytest.raises(NotImplementedError) as exc_info:
89+
save_data(df, p_obj, "arrow")
90+
91+
assert "'arrow' is unsupported." in exc_info.value.args[0]
92+
93+
7994
@pytest.mark.skip("TODO: complete once driver story is fleshed out")
8095
def test_driver_roundtrip_joblib(tmp_dir2):
8196
pass

0 commit comments

Comments
 (0)