diff --git a/tests/components/habitica/test_calendar.py b/tests/components/habitica/test_calendar.py index 24e640d0888..228314eb2be 100644 --- a/tests/components/habitica/test_calendar.py +++ b/tests/components/habitica/test_calendar.py @@ -3,7 +3,6 @@ from collections.abc import Generator from unittest.mock import patch -from freezegun.api import freeze_time import pytest from syrupy.assertion import SnapshotAssertion @@ -33,7 +32,7 @@ async def set_tz(hass: HomeAssistant) -> None: @pytest.mark.usefixtures("habitica") -@freeze_time("2024-09-20T22:00:00.000Z") +@pytest.mark.freeze_time("2024-09-20T22:00:00.000Z") async def test_calendar_platform( hass: HomeAssistant, config_entry: MockConfigEntry, diff --git a/tests/components/habitica/test_notify.py b/tests/components/habitica/test_notify.py index 6f2988a3fcc..0b592039c85 100644 --- a/tests/components/habitica/test_notify.py +++ b/tests/components/habitica/test_notify.py @@ -7,7 +7,7 @@ from unittest.mock import AsyncMock, patch from uuid import UUID from aiohttp import ClientError -from freezegun.api import FrozenDateTimeFactory, freeze_time +from freezegun.api import FrozenDateTimeFactory from habiticalib import HabiticaGroupMembersResponse import pytest from syrupy.assertion import SnapshotAssertion @@ -82,7 +82,7 @@ async def test_notify_platform( ), ], ) -@freeze_time("2025-08-13T00:00:00+00:00") +@pytest.mark.freeze_time("2025-08-13T00:00:00+00:00") async def test_send_message( hass: HomeAssistant, config_entry: MockConfigEntry, diff --git a/tests/components/habitica/test_services.py b/tests/components/habitica/test_services.py index 3692361942a..b1807718254 100644 --- a/tests/components/habitica/test_services.py +++ b/tests/components/habitica/test_services.py @@ -7,7 +7,6 @@ from unittest.mock import AsyncMock, patch from uuid import UUID from aiohttp import ClientError -from freezegun.api import freeze_time from habiticalib import ( Checklist, Direction, @@ -1845,7 +1844,7 @@ async def test_create_todo( ], ) @pytest.mark.usefixtures("mock_uuid4") -@freeze_time("2025-02-25T22:00:00.000Z") +@pytest.mark.freeze_time("2025-02-25T22:00:00.000Z") async def test_update_daily( hass: HomeAssistant, config_entry: MockConfigEntry, @@ -2023,7 +2022,7 @@ async def test_update_daily( ], ) @pytest.mark.usefixtures("mock_uuid4") -@freeze_time("2025-02-25T22:00:00.000Z") +@pytest.mark.freeze_time("2025-02-25T22:00:00.000Z") async def test_create_daily( hass: HomeAssistant, config_entry: MockConfigEntry, @@ -2064,7 +2063,7 @@ async def test_create_daily( ], ) @pytest.mark.usefixtures("mock_uuid4") -@freeze_time("2025-02-25T22:00:00.000Z") +@pytest.mark.freeze_time("2025-02-25T22:00:00.000Z") async def test_update_daily_service_validation_errors( hass: HomeAssistant, config_entry: MockConfigEntry,