mirror of
https://github.com/home-assistant/core.git
synced 2025-12-27 06:28:31 +00:00
Fix Todoist test failure (#154808)
This commit is contained in:
@@ -7,6 +7,7 @@ from unittest.mock import AsyncMock, patch
|
||||
import urllib
|
||||
import zoneinfo
|
||||
|
||||
from freezegun import freeze_time
|
||||
from freezegun.api import FrozenDateTimeFactory
|
||||
import pytest
|
||||
from todoist_api_python.models import Due
|
||||
@@ -38,6 +39,13 @@ TZ_NAME = "America/Regina"
|
||||
TIMEZONE = zoneinfo.ZoneInfo(TZ_NAME)
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def freeze_the_time():
|
||||
"""Freeze the time."""
|
||||
with freeze_time("2024-05-24 12:00:00"):
|
||||
yield
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def platforms() -> list[Platform]:
|
||||
"""Override platforms."""
|
||||
|
||||
Reference in New Issue
Block a user