mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Fix ridwell tests (#90401)
This commit is contained in:
parent
e617bfb1bb
commit
96dae587a9
@ -3,7 +3,6 @@ from datetime import date
|
|||||||
from unittest.mock import AsyncMock, Mock, patch
|
from unittest.mock import AsyncMock, Mock, patch
|
||||||
|
|
||||||
from aioridwell.model import EventState, RidwellPickup, RidwellPickupEvent
|
from aioridwell.model import EventState, RidwellPickup, RidwellPickupEvent
|
||||||
from freezegun import freeze_time
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.components.ridwell.const import DOMAIN
|
from homeassistant.components.ridwell.const import DOMAIN
|
||||||
@ -80,8 +79,6 @@ async def mock_aioridwell_fixture(hass, client, config):
|
|||||||
), patch(
|
), patch(
|
||||||
"homeassistant.components.ridwell.coordinator.async_get_client",
|
"homeassistant.components.ridwell.coordinator.async_get_client",
|
||||||
return_value=client,
|
return_value=client,
|
||||||
), freeze_time(
|
|
||||||
"2022-01-01"
|
|
||||||
):
|
):
|
||||||
yield
|
yield
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ async def test_entry_diagnostics(
|
|||||||
"_async_request": None,
|
"_async_request": None,
|
||||||
"event_id": "event_123",
|
"event_id": "event_123",
|
||||||
"pickup_date": {
|
"pickup_date": {
|
||||||
"__type": "<class 'freezegun.api.FakeDate'>",
|
"__type": "<class 'datetime.date'>",
|
||||||
"isoformat": "2022-01-24",
|
"isoformat": "2022-01-24",
|
||||||
},
|
},
|
||||||
"pickups": [
|
"pickups": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user