mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57: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 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
|
||||
|
||||
|
@ -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": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user