File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ more comprehensively:
285
285
was_published_recently() should return False for questions whose
286
286
pub_date is older than 1 day.
287
287
"""
288
- time = timezone.now() - datetime.timedelta(days=30 )
288
+ time = timezone.now() - datetime.timedelta(days=1 )
289
289
old_question = Question(pub_date=time)
290
290
self.assertIs(old_question.was_published_recently(), False)
291
291
@@ -294,7 +294,7 @@ more comprehensively:
294
294
was_published_recently() should return True for questions whose
295
295
pub_date is within the last day.
296
296
"""
297
- time = timezone.now() - datetime.timedelta(hours=1 )
297
+ time = timezone.now() - datetime.timedelta(hours=23, minutes=59, seconds=59 )
298
298
recent_question = Question(pub_date=time)
299
299
self.assertIs(recent_question.was_published_recently(), True)
300
300
You can’t perform that action at this time.
0 commit comments