Skip to content

Commit

Permalink
Remove test which fails for minimum unit
Browse files Browse the repository at this point in the history
  • Loading branch information
fealho committed Jan 10, 2024
1 parent 48ac779 commit f360d98
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tests/unit/constraints/test_tabular.py
Original file line number Diff line number Diff line change
Expand Up @@ -3298,9 +3298,9 @@ def test_reverse_transform_is_datetime(self):
"""Test the ``reverse_transform`` method for ``Range`` with datetime."""
# Setup
table_data = pd.DataFrame({
'a': ['2020-01-01T00:00:00', '2020-01-02T00:00:00'],
'b': ['2020-01-01T00:00:01', '2020-01-02T00:00:01'],
'c': ['2020-01-01T00:00:02', '2020-01-02T00:00:02'],
'a': pd.to_datetime(['2020-01-01T00:00:00', '2020-01-02T00:00:00']),
'b': pd.to_datetime(['2020-01-01T00:00:01', '2020-01-02T00:00:01']),
'c': pd.to_datetime(['2020-01-01T00:00:02', '2020-01-02T00:00:02']),
})

transformed_data = pd.DataFrame({
Expand All @@ -3321,12 +3321,7 @@ def test_reverse_transform_is_datetime(self):
out = instance.reverse_transform(transformed_data)

# Assert
expected_table_data = pd.DataFrame({
'a': pd.to_datetime(['2020-01-01T00:00:00', '2020-01-02T00:00:00']),
'b': pd.to_datetime(['2020-01-01T00:00:01', '2020-01-02T00:00:01']),
'c': pd.to_datetime(['2020-01-01T00:00:02', '2020-01-02T00:00:02']),
})
pd.testing.assert_frame_equal(expected_table_data, out, check_dtype=False)
pd.testing.assert_frame_equal(table_data, out)


class TestScalarRange():
Expand Down

0 comments on commit f360d98

Please sign in to comment.