From b6bced6d333b3b6980ead8de1bb9b2d5015329d2 Mon Sep 17 00:00:00 2001 From: zmoon Date: Wed, 25 Oct 2023 19:44:01 -0600 Subject: [PATCH] Use yesterday instead of current date using current is problematic if day just changed --- tests/test_airnow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_airnow.py b/tests/test_airnow.py index 4945c709..346ba59c 100644 --- a/tests/test_airnow.py +++ b/tests/test_airnow.py @@ -62,11 +62,11 @@ def test_add_data_daily(): "date", [ pd.Timestamp("2021/07/01"), - pd.Timestamp.now().floor("D"), + pd.Timestamp.now().floor("D") - pd.Timedelta(days=1), ], ids=[ "2021/07/01 (historical)", - "current date", + "yesterday", ], ) def test_check_zero_utc_offsets(date, bad_utcoffset):