From ce13b0989d59f5dfcdf43f22f55cc22cdaf79dd4 Mon Sep 17 00:00:00 2001 From: mnestor Date: Tue, 22 Nov 2016 13:15:39 -0500 Subject: [PATCH] Fix for #4520 (#4526) * Fix for #4520 * fix lint --- tests/components/calendar/test_google.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/components/calendar/test_google.py b/tests/components/calendar/test_google.py index d19ecb65704..5c49f3836b2 100644 --- a/tests/components/calendar/test_google.py +++ b/tests/components/calendar/test_google.py @@ -4,8 +4,6 @@ import logging import unittest from unittest.mock import patch -import pytest - import homeassistant.components.calendar as calendar_base import homeassistant.components.calendar.google as calendar import homeassistant.util.dt as dt_util @@ -288,17 +286,15 @@ class TestComponentsGoogleCalendar(unittest.TestCase): 'description': '' }) - @pytest.mark.skip @patch('homeassistant.components.calendar.google.GoogleCalendarData') def test_all_day_offset_in_progress_event(self, mock_next_event): """Test that we can create an event trigger on device.""" tomorrow = dt_util.dt.date.today() \ + dt_util.dt.timedelta(days=1) - offset_hours = (25 - dt_util.now().hour) event_summary = 'Test All Day Event Offset In Progress' event = { - 'summary': '{} !!-{}:0'.format(event_summary, offset_hours), + 'summary': '{} !!-25:0'.format(event_summary), 'start': { 'date': tomorrow.isoformat() },