Skip to content

Commit

Permalink
Set second and microsecond to non-zero in test start times
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery committed Dec 4, 2024
1 parent d2d943f commit 85f9845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/components/recorder/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ def all(self):
[
(
# Test 00:25 local time, during DST
datetime(2022, 10, 21, 7, 25, tzinfo=UTC),
datetime(2022, 10, 21, 7, 25, 50, 123, tzinfo=UTC),
{
"hour": ["2022-10-21T07:00:00+00:00", "2022-10-21T08:00:00+00:00"],
"hour-1": ["2022-10-21T06:00:00+00:00", "2022-10-21T07:00:00+00:00"],
Expand All @@ -1074,7 +1074,7 @@ def all(self):
),
(
# Test 00:25 local time, standard time, February 28th a leap year
datetime(2024, 2, 28, 8, 25, tzinfo=UTC),
datetime(2024, 2, 28, 8, 25, 50, 123, tzinfo=UTC),
{
"hour": ["2024-02-28T08:00:00+00:00", "2024-02-28T09:00:00+00:00"],
"hour-1": ["2024-02-28T07:00:00+00:00", "2024-02-28T08:00:00+00:00"],
Expand Down

0 comments on commit 85f9845

Please sign in to comment.