Skip to content

Commit

Permalink
removed timezone on make_aware, since it defaults to the current time…
Browse files Browse the repository at this point in the history
…zone.
  • Loading branch information
dhedegaard committed Jul 6, 2015
1 parent fc0d385 commit 955debb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions youtube/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ def setUp(self):

def test__create_or_update__new_video(self):
Video.objects.create_or_update(self.channel, self.videodata)
uploaded = timezone.make_aware(
datetime.datetime(2014, 1, 1, 12), timezone.get_current_timezone())
uploaded = timezone.make_aware(datetime.datetime(2014, 1, 1, 12))

self.assertTrue(Video.objects.filter(youtubeid='abcdef').exists())
video = Video.objects.get(youtubeid='abcdef')
Expand All @@ -190,8 +189,7 @@ def test__create_or_update__existing_video(self):
)

Video.objects.create_or_update(self.channel, self.videodata)
uploaded = timezone.make_aware(
datetime.datetime(2014, 1, 1, 12), timezone.get_current_timezone())
uploaded = timezone.make_aware(datetime.datetime(2014, 1, 1, 12))

self.assertTrue(Video.objects.filter(youtubeid='abcdef').exists())
video = Video.objects.get(youtubeid='abcdef')
Expand Down

0 comments on commit 955debb

Please sign in to comment.