Skip to content

Commit

Permalink
Fix DST bug in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Nov 21, 2023
1 parent 804a963 commit 98334fb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions helium/feed/tests/views/apis/testcaseexternalresourceviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def test_get_external_calendar_as_events(self, mock_urlopen):
self.assertEqual(response.data[0]['title'], 'test1')
self.assertEqual(response.data[0]['all_day'], False)
self.assertEqual(response.data[0]['show_end_time'], True)
self.assertEqual(response.data[0]['start'], '2017-08-02T17:34:00Z')
self.assertEqual(response.data[0]['end'], '2017-08-02T18:04:00Z')
self.assertEqual(response.data[0]['start'], '2017-08-02T18:34:00Z')
self.assertEqual(response.data[0]['end'], '2017-08-02T19:04:00Z')
self.assertEqual(response.data[0]['priority'], 50)
self.assertEqual(response.data[0]['url'], 'http://www.some-test-url.com')
self.assertEqual(response.data[0]['comments'], 'test1 description')
Expand All @@ -85,7 +85,7 @@ def test_get_external_calendar_as_events(self, mock_urlopen):
self.assertEqual(response.data[2]['title'], 'EOD Event')
self.assertEqual(response.data[2]['all_day'], False)
self.assertEqual(response.data[2]['show_end_time'], True)
self.assertEqual(response.data[2]['start'], '2020-03-28T14:00:00Z')
self.assertEqual(response.data[2]['start'], '2020-03-28T15:00:00Z')
self.assertEqual(response.data[2]['end'], '2020-03-29T07:59:59.999999Z')
self.assertEqual(response.data[2]['priority'], 50)
self.assertEqual(response.data[2]['url'], None)
Expand All @@ -95,8 +95,8 @@ def test_get_external_calendar_as_events(self, mock_urlopen):
self.assertEqual(response.data[3]['title'], 'Duration Event')
self.assertEqual(response.data[3]['all_day'], False)
self.assertEqual(response.data[3]['show_end_time'], True)
self.assertEqual(response.data[3]['start'], '2020-03-28T14:00:00Z')
self.assertEqual(response.data[3]['end'], '2020-03-28T16:00:00Z')
self.assertEqual(response.data[3]['start'], '2020-03-28T15:00:00Z')
self.assertEqual(response.data[3]['end'], '2020-03-28T17:00:00Z')
self.assertEqual(response.data[3]['priority'], 50)
self.assertEqual(response.data[3]['url'], None)
self.assertEqual(response.data[3]['comments'], 'end date 2 hours later')
Expand Down

0 comments on commit 98334fb

Please sign in to comment.