Fix ridwell tests (#90401)

This commit is contained in:
epenet 2023-03-28 11:54:16 +02:00 committed by GitHub
parent e617bfb1bb
commit 96dae587a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -3,7 +3,6 @@ from datetime import date
from unittest.mock import AsyncMock, Mock, patch
from aioridwell.model import EventState, RidwellPickup, RidwellPickupEvent
from freezegun import freeze_time
import pytest
from homeassistant.components.ridwell.const import DOMAIN
@ -80,8 +79,6 @@ async def mock_aioridwell_fixture(hass, client, config):
), patch(
"homeassistant.components.ridwell.coordinator.async_get_client",
return_value=client,
), freeze_time(
"2022-01-01"
):
yield

View File

@ -32,7 +32,7 @@ async def test_entry_diagnostics(
"_async_request": None,
"event_id": "event_123",
"pickup_date": {
"__type": "<class 'freezegun.api.FakeDate'>",
"__type": "<class 'datetime.date'>",
"isoformat": "2022-01-24",
},
"pickups": [