Skip to content

Commit

Permalink
dtype index type only
Browse files Browse the repository at this point in the history
  • Loading branch information
LoannPeurey committed Mar 7, 2024
1 parent 051bfe5 commit 98e25ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_series_to_datetime():
#convert to datetime using the formats for start_time listed in the project RECORDINGS_COLUMNS.Index(name == 'start_time')
converted_time = series_to_datetime(only_time, project.RECORDINGS_COLUMNS, 'start_time')

pd.testing.assert_series_equal(converted_time, truth, check_index=False, check_dtype=False)
pd.testing.assert_series_equal(converted_time, truth, check_index_type=False, check_dtype=False)

truth = pd.Series([datetime.datetime(2022,1,23,3,12,0,0),
datetime.datetime(2022,1,23,4,14,0,0),
Expand All @@ -39,7 +39,7 @@ def test_series_to_datetime():
#convert to datetime using the formats for start_time and date_iso listed in the project RECORDINGS_COLUMNS.Index(name == 'start_time') and Index(name == 'date_iso')
converted_time = series_to_datetime(only_time, project.RECORDINGS_COLUMNS, 'start_time', only_date, project.RECORDINGS_COLUMNS, 'date_iso')

pd.testing.assert_series_equal(converted_time, truth, check_index=False, check_dtype=False)
pd.testing.assert_series_equal(converted_time, truth, check_index_type=False, check_dtype=False)

def test_time_intervals_intersect():
truth = [TimeInterval(datetime.datetime(1900,1,1,10,36),datetime.datetime(1900,1,1,21,4))]
Expand Down

0 comments on commit 98e25ce

Please sign in to comment.