Skip to content

Commit

Permalink
Test deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Jun 16, 2024
1 parent 22a6a38 commit b9f6746
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions py-polars/tests/unit/constructors/test_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -1635,3 +1635,11 @@ def test_infer_data_orientation() -> None:
assert _infer_data_orientation([1, 2, 3], 2, 2) == "col"
assert _infer_data_orientation([1, 2, 3], 2, 3) == "row"
assert _infer_data_orientation([1, "x"], 2) == "row"


def test_data_orientation_inference_deprecated() -> None:
with pytest.deprecated_call():
pl.from_records([(1, 2, "foo"), (2, 3, "bar"), (3, 4, "baz")])

with pytest.deprecated_call():
pl.from_records([[1, 2, 3], [4, 5, 6]], schema=["a", "b", "c"])

0 comments on commit b9f6746

Please sign in to comment.