Skip to content

Commit f0e08aa

Browse files
renzonrenzon
authored andcommitted
Fixed bug on webinars and liveclass tests using naive date
close #437
1 parent 90ecf0b commit f0e08aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonpro/cohorts/tests/test_cohorts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def test_cohort_end(cohort: Cohort, resp):
8989

9090
@pytest.fixture
9191
def live_classes(cohort):
92-
now = datetime.now()
92+
now = datetime.utcnow()
9393
return [
9494
mommy.make(LiveClass, cohort=cohort, vimeo_id=str(i), start=now + timedelta(days=i)) for i in range(100, 105)
9595
]
@@ -118,7 +118,7 @@ def test_live_classes_vimeo(resp_with_classes, live_classes):
118118

119119
@pytest.fixture
120120
def webinars(cohort):
121-
now = datetime.now()
121+
now = datetime.utcnow()
122122
return [
123123
mommy.make(Webinar, cohort=cohort, vimeo_id=str(i), start=now + timedelta(days=i)) for i in range(100, 105)
124124
]

0 commit comments

Comments
 (0)