mirror of
https://github.com/home-assistant/core.git
synced 2025-06-23 14:37:07 +00:00
parent
c81735cc84
commit
ce13b0989d
@ -4,8 +4,6 @@ import logging
|
|||||||
import unittest
|
import unittest
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
import homeassistant.components.calendar as calendar_base
|
import homeassistant.components.calendar as calendar_base
|
||||||
import homeassistant.components.calendar.google as calendar
|
import homeassistant.components.calendar.google as calendar
|
||||||
import homeassistant.util.dt as dt_util
|
import homeassistant.util.dt as dt_util
|
||||||
@ -288,17 +286,15 @@ class TestComponentsGoogleCalendar(unittest.TestCase):
|
|||||||
'description': ''
|
'description': ''
|
||||||
})
|
})
|
||||||
|
|
||||||
@pytest.mark.skip
|
|
||||||
@patch('homeassistant.components.calendar.google.GoogleCalendarData')
|
@patch('homeassistant.components.calendar.google.GoogleCalendarData')
|
||||||
def test_all_day_offset_in_progress_event(self, mock_next_event):
|
def test_all_day_offset_in_progress_event(self, mock_next_event):
|
||||||
"""Test that we can create an event trigger on device."""
|
"""Test that we can create an event trigger on device."""
|
||||||
tomorrow = dt_util.dt.date.today() \
|
tomorrow = dt_util.dt.date.today() \
|
||||||
+ dt_util.dt.timedelta(days=1)
|
+ dt_util.dt.timedelta(days=1)
|
||||||
|
|
||||||
offset_hours = (25 - dt_util.now().hour)
|
|
||||||
event_summary = 'Test All Day Event Offset In Progress'
|
event_summary = 'Test All Day Event Offset In Progress'
|
||||||
event = {
|
event = {
|
||||||
'summary': '{} !!-{}:0'.format(event_summary, offset_hours),
|
'summary': '{} !!-25:0'.format(event_summary),
|
||||||
'start': {
|
'start': {
|
||||||
'date': tomorrow.isoformat()
|
'date': tomorrow.isoformat()
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user