Skip to content

Commit

Permalink
Add depr test
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed May 27, 2024
1 parent af80f05 commit 3ddce9b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions py-polars/tests/unit/operations/test_join.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,10 @@ def test_join_raise_on_redundant_keys() -> None:
right = pl.DataFrame({"a": [2, 3, 4], "c": [4, 5, 6]})
with pytest.raises(pl.InvalidOperationError, match="already joined on"):
left.join(right, on=["a", "a"], how="full", coalesce=True)


def test_left_join_coalesce_default_deprecation_message() -> None:
left = pl.DataFrame({"a": [1, 2, 3], "b": [3, 4, 5]})
right = pl.DataFrame({"a": [2, 3, 4], "c": [4, 5, 6]})
with pytest.deprecated_call():
left.join(right, on="a", how="left")

0 comments on commit 3ddce9b

Please sign in to comment.