From 7394f857c41865ae32b50c18609362ac5397ec4c Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Thu, 7 Jul 2016 15:42:38 +0530 Subject: minor timezone related changes in models and test cases --- yaksh/tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'yaksh/tests.py') diff --git a/yaksh/tests.py b/yaksh/tests.py index e65e699..9b5971c 100644 --- a/yaksh/tests.py +++ b/yaksh/tests.py @@ -230,8 +230,9 @@ class QuizTestCases(unittest.TestCase): self.assertEqual(trial_quiz.duration, 1000) self.assertTrue(trial_quiz.active) self.assertEqual(trial_quiz.end_date_time, - datetime(2199, 1, 1, 0, 0, 0, 0) - ) + datetime(2199, 1, 1, 0, 0, 0, 0, + tzinfo=pytz.utc.zone) + ) self.assertEqual(trial_quiz.time_between_attempts, 0) def test_create_trial_from_quiz_usermode(self): -- cgit From f1fd7ece4fed04c333df436e39fd89f37133070e Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Thu, 7 Jul 2016 15:47:13 +0530 Subject: corrected minor change --- yaksh/tests.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'yaksh/tests.py') diff --git a/yaksh/tests.py b/yaksh/tests.py index 9b5971c..8bd2dda 100644 --- a/yaksh/tests.py +++ b/yaksh/tests.py @@ -230,9 +230,8 @@ class QuizTestCases(unittest.TestCase): self.assertEqual(trial_quiz.duration, 1000) self.assertTrue(trial_quiz.active) self.assertEqual(trial_quiz.end_date_time, - datetime(2199, 1, 1, 0, 0, 0, 0, - tzinfo=pytz.utc.zone) - ) + datetime(2199, 1, 1, 0, 0, 0, 0, tzinfo=pytz.utc) + ) self.assertEqual(trial_quiz.time_between_attempts, 0) def test_create_trial_from_quiz_usermode(self): -- cgit