mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Cleanup Google Calendar unused test fixtures (#74353)
This commit is contained in:
parent
5919082a53
commit
a4c6cd2fbe
@ -101,9 +101,7 @@ def upcoming_event_url(entity: str = TEST_ENTITY) -> str:
|
|||||||
return f"/api/calendars/{entity}?start={urllib.parse.quote(start)}&end={urllib.parse.quote(end)}"
|
return f"/api/calendars/{entity}?start={urllib.parse.quote(start)}&end={urllib.parse.quote(end)}"
|
||||||
|
|
||||||
|
|
||||||
async def test_all_day_event(
|
async def test_all_day_event(hass, mock_events_list_items, component_setup):
|
||||||
hass, mock_events_list_items, mock_token_read, component_setup
|
|
||||||
):
|
|
||||||
"""Test that we can create an event trigger on device."""
|
"""Test that we can create an event trigger on device."""
|
||||||
week_from_today = dt_util.now().date() + datetime.timedelta(days=7)
|
week_from_today = dt_util.now().date() + datetime.timedelta(days=7)
|
||||||
end_event = week_from_today + datetime.timedelta(days=1)
|
end_event = week_from_today + datetime.timedelta(days=1)
|
||||||
@ -672,7 +670,6 @@ async def test_future_event_offset_update_behavior(
|
|||||||
async def test_unique_id(
|
async def test_unique_id(
|
||||||
hass,
|
hass,
|
||||||
mock_events_list_items,
|
mock_events_list_items,
|
||||||
mock_token_read,
|
|
||||||
component_setup,
|
component_setup,
|
||||||
config_entry,
|
config_entry,
|
||||||
):
|
):
|
||||||
@ -695,7 +692,6 @@ async def test_unique_id(
|
|||||||
async def test_unique_id_migration(
|
async def test_unique_id_migration(
|
||||||
hass,
|
hass,
|
||||||
mock_events_list_items,
|
mock_events_list_items,
|
||||||
mock_token_read,
|
|
||||||
component_setup,
|
component_setup,
|
||||||
config_entry,
|
config_entry,
|
||||||
old_unique_id,
|
old_unique_id,
|
||||||
@ -751,7 +747,6 @@ async def test_unique_id_migration(
|
|||||||
async def test_invalid_unique_id_cleanup(
|
async def test_invalid_unique_id_cleanup(
|
||||||
hass,
|
hass,
|
||||||
mock_events_list_items,
|
mock_events_list_items,
|
||||||
mock_token_read,
|
|
||||||
component_setup,
|
component_setup,
|
||||||
config_entry,
|
config_entry,
|
||||||
mock_calendars_yaml,
|
mock_calendars_yaml,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user