Skip to content

Commit f6a31ab

Browse files
committed
Update test for parse_datetime_columns to assert non-datetime dtype
- Modified the test case in `test_dataframe_utils.py` to check that the "not_a_date" column is not of datetime type, enhancing the accuracy of the test for the `parse_datetime_columns` function. This change improves the reliability of the test suite by ensuring proper validation of non-datetime columns.
1 parent 064eabb commit f6a31ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/test_dataframe_utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def test_parse_datetime_columns_infer(self):
126126
df = parse_datetime_columns(df, infer=True)
127127

128128
assert pd.api.types.is_datetime64_any_dtype(df["timestamp"])
129-
assert df["not_a_date"].dtype == "object"
129+
assert not pd.api.types.is_datetime64_any_dtype(df["not_a_date"])
130130

131131

132132
class TestStreamToDataFrame:

0 commit comments

Comments
 (0)