Skip to content

Commit

Permalink
ignore tests on windows that fails due to bad support for timezones.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedegaard committed Jan 21, 2016
1 parent c4123e3 commit dd185b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion youtube/tests/test_models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import unicode_literals
import os
import datetime

import unittest
import mock
from django.test import TestCase
from django.utils import timezone
Expand Down Expand Up @@ -184,6 +185,7 @@ def setUp(self):
},
}

@unittest.skipIf(os.name == 'nt', 'Windows does not support timezones')
def test__create_or_update__new_video(self):
Video.objects.create_or_update(self.channel, self.videodata)
uploaded = timezone.make_aware(
Expand All @@ -199,6 +201,7 @@ def test__create_or_update__new_video(self):
self.assertEqual(video.uploaded, uploaded)
self.assertEqual(video.updated, uploaded)

@unittest.skipIf(os.name == 'nt', 'Windows does not support timezones')
def test__create_or_update__existing_video(self):
video = Video.objects.create(
youtubeid='abcdef',
Expand Down

0 comments on commit dd185b8

Please sign in to comment.