Skip to content

Commit 2b7461a

Browse files
committed
check return type on pipe notation
1 parent 367a71a commit 2b7461a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_polars.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,9 +723,11 @@ def test_polars_arrow_table_narrows():
723723
d = pl.DataFrame({"x": [1, 2], "y": [3, 4]})
724724
ops = data_algebra.TableDescription(column_names=["x"])
725725
res = ops.transform(d)
726+
assert isinstance(res, pl.DataFrame)
726727
expect = pl.DataFrame({"x": [1, 2]})
727728
assert data_algebra.test_util.equivalent_frames(res, expect)
728729
with pytest.raises(AssertionError):
729730
d >> ops
730731
res2 = d[["x"]] >> ops
732+
assert isinstance(res2, pl.DataFrame)
731733
assert data_algebra.test_util.equivalent_frames(res2, expect)

0 commit comments

Comments
 (0)