From f81e373bd487e550fa7e2b01b49831e88555e28e Mon Sep 17 00:00:00 2001 From: Christine Lytwynec Date: Tue, 23 Jun 2015 14:04:19 -0400 Subject: [PATCH] don't use hardcoded date in verification email test --- lms/djangoapps/verify_student/tests/test_views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lms/djangoapps/verify_student/tests/test_views.py b/lms/djangoapps/verify_student/tests/test_views.py index 015f3effdd..dc6620da0c 100644 --- a/lms/djangoapps/verify_student/tests/test_views.py +++ b/lms/djangoapps/verify_student/tests/test_views.py @@ -2023,8 +2023,7 @@ class TestEmailMessageWithCustomICRVBlock(ModuleStoreTestCase): def test_denied_email_message_with_close_verification_dates(self): # Due date given and expired - - return_value = datetime(2016, 1, 1, tzinfo=timezone.utc) + return_value = datetime.now(tz=pytz.UTC) + timedelta(days=22) with patch.object(timezone, 'now', return_value=return_value): __, body = _compose_message_reverification_email( self.course.id, self.user.id, self.reverification_location, "denied", self.request