Skip to content

Commit

Permalink
remove err message
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Palazzo committed Jun 23, 2023
1 parent aae438a commit 0a189d8
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,9 @@ def test__convert_datetime_columns_to_numeric(self):
cpt_property._convert_datetime_columns_to_numeric(data, metadata)

# Assert
expected_error = (
'Error: ValueError time data "error" doesn\'t match format "%Y-%m-%d", at '
'position 0. You might want to try:\n - passing `format` if your strings'
" have a consistent format;\n - passing `format=\'ISO8601\'` if your"
' strings are all ISO8601 but not necessarily in exactly the same format;\n'
" - passing `format=\'mixed\'`, and the format will be inferred for each"
' element individually. You might want to use `dayfirst` alongside this.'
)

assert data['col4'].dtype == np.int64
assert data['col5'].dtype == np.float64
assert 'col6' in list(cpt_property._columns_datetime_conversion_failed.keys())
assert cpt_property._columns_datetime_conversion_failed['col6'] == expected_error

def test__discretize_column(self):
"""Test the ``_discretize_column`` method."""
Expand Down

0 comments on commit 0a189d8

Please sign in to comment.