Skip to content

Commit

Permalink
Asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Feb 20, 2023
1 parent 432b90b commit 3db3e0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion py-polars/polars/testing/asserts.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
dtype_to_py_type,
)
from polars.exceptions import InvalidAssert, PanicException
from polars.utils import deprecated_alias
from polars.utils import deprecate_nonkeyword_arguments, deprecated_alias


@deprecate_nonkeyword_arguments()
@deprecated_alias(check_column_names="check_column_order")
def assert_frame_equal(
left: pli.DataFrame | pli.LazyFrame,
Expand Down Expand Up @@ -117,6 +118,7 @@ def assert_frame_equal(
raise AssertionError(msg) from exc


@deprecate_nonkeyword_arguments()
def assert_frame_not_equal(
left: pli.DataFrame | pli.LazyFrame,
right: pli.DataFrame | pli.LazyFrame,
Expand Down Expand Up @@ -182,6 +184,7 @@ def assert_frame_not_equal(
raise AssertionError("Expected the input frames to be unequal.")


@deprecate_nonkeyword_arguments()
def assert_series_equal(
left: pli.Series,
right: pli.Series,
Expand Down Expand Up @@ -240,6 +243,7 @@ def assert_series_equal(
)


@deprecate_nonkeyword_arguments()
def assert_series_not_equal(
left: pli.Series,
right: pli.Series,
Expand Down

0 comments on commit 3db3e0c

Please sign in to comment.