Skip to content

Commit

Permalink
fix: Fixed time preprocessor test (#181)
Browse files Browse the repository at this point in the history
Fixed time preprocessor tests that were failing due to more granular
engine types
  • Loading branch information
jnumainville authored Dec 21, 2023
1 parent cedcd3c commit 05bbd59
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ def test_time_preprocessor(self):

expected_df = pd.DataFrame(
{
"Start": ["2021-07-04 12:00:00"],
"End": ["2021-07-04 13:00:00"],
"Start": ["2021-07-04 12:00:00+00:00"],
"End": ["2021-07-04 13:00:00+00:00"],
"Category": ["A"],
"x_diff": [3600000.0],
}
)
expected_df["Start"] = pd.to_datetime(expected_df["Start"])
expected_df["End"] = pd.to_datetime(expected_df["End"])
expected_df["Category"] = expected_df["Category"].astype("string")
expected_df["x_diff"] = expected_df["x_diff"].astype("Float64")

new_df = dhpd.to_pandas(new_table)
Expand Down

0 comments on commit 05bbd59

Please sign in to comment.