From dc6e6657b79ac2c4f53e897dd61165e9856d795e Mon Sep 17 00:00:00 2001 From: Adrian D'Alessandro Date: Thu, 30 Nov 2023 09:33:41 +0000 Subject: [PATCH] Use minutes resolution in test opal --- tests/test_opal.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_opal.py b/tests/test_opal.py index f0deb9c..e483cf9 100644 --- a/tests/test_opal.py +++ b/tests/test_opal.py @@ -44,10 +44,10 @@ def test_append_opal_data(opal_data): # Checks that data appended to Dataframe matches data input. data_1["time"] = pd.Timestamp(OPAL_START_DATE) + pd.to_timedelta( - data_1["time"], unit="S" + data_1["time"], unit="m" ) data_2["time"] = pd.Timestamp(OPAL_START_DATE) + pd.to_timedelta( - data_2["time"], unit="S" + data_2["time"], unit="m" ) assert (df.loc[1] == list(data_1.values())[1:]).all() @@ -58,7 +58,7 @@ def test_append_opal_data(opal_data): assert len(df.index) == 2 data_3["time"] = pd.Timestamp(OPAL_START_DATE) + pd.to_timedelta( - data_3["time"], unit="S" + data_3["time"], unit="m" ) assert (df.loc[2] == list(data_3.values())[1:]).all() @@ -100,6 +100,6 @@ def test_append_opal_data_array(opal_data_array): assert df.shape == (1, len(opal_headers)) - data_1[1] = pd.Timestamp(OPAL_START_DATE) + pd.to_timedelta(data_1[1], unit="S") + data_1[1] = pd.Timestamp(OPAL_START_DATE) + pd.to_timedelta(data_1[1], unit="m") assert (df.loc[1] == data_1[1:]).all()