Skip to content

Commit 32a0178

Browse files
renzonrenzon
authored andcommitted
Updated dependencies, fixed test with dates on cohorts
1 parent 851f71b commit 32a0178

File tree

2 files changed

+96
-80
lines changed

2 files changed

+96
-80
lines changed

Pipfile.lock

Lines changed: 94 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pythonpro/cohorts/tests/test_cohorts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def test_live_classes_are_sorted(live_classes: list, cohort):
100100
assert live_classes == db_cohort.classes
101101

102102

103+
@pytest.mark.freeze_time('2019-01-01 18:00:00')
103104
def test_live_classes_datetime(resp_with_classes, live_classes):
104105
for live_class in live_classes:
105106
dj_assert_contains(resp_with_classes, date(live_class.start))
@@ -126,6 +127,7 @@ def test_webinars_are_sorted(webinars: list, cohort):
126127
assert webinars == db_cohort.webinars
127128

128129

130+
@pytest.mark.freeze_time('2019-01-01 18:00:00')
129131
def test_webinars_datetime(resp_with_webinars, webinars):
130132
for live_class in webinars:
131133
dj_assert_contains(resp_with_webinars, date(live_class.start))

0 commit comments

Comments
 (0)