Skip to content

Commit

Permalink
fix(tests): compat with polars 1.0.0 (#246)
Browse files Browse the repository at this point in the history
Signed-off-by: Luka Peschke <[email protected]>
  • Loading branch information
lukapeschke authored Jul 1, 2024
1 parent 0224f8f commit 71133d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/tests/test_durations.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
import pandas as pd
import polars as pl
from pandas.testing import assert_frame_equal as pd_assert_frame_equal
from polars.datatypes import DataType as PolarsDataType
from polars.datatypes import Date as PlDate
from polars.datatypes import Datetime as PlDateTime
from polars.datatypes import Duration as PlDuration
from polars.datatypes import PolarsDataType
from polars.datatypes import Utf8 as PlUtf8
from polars.testing import assert_frame_equal as pl_assert_frame_equal
from utils import path_for_fixture
Expand All @@ -32,8 +32,8 @@ def test_sheet_with_different_time_types() -> None:
"datetime": np.dtype("datetime64[ms]"),
}
expected_pl_dtypes: dict[str, PolarsDataType] = {
"date": PlDate,
"datestr": PlUtf8,
"date": PlDate(),
"datestr": PlUtf8(),
"time": PlDuration(time_unit="ms"),
"datetime": PlDateTime(time_unit="ms", time_zone=None),
}
Expand Down

0 comments on commit 71133d3

Please sign in to comment.