diff options
author | ankitjavalkar | 2020-05-21 17:33:23 +0530 |
---|---|---|
committer | ankitjavalkar | 2020-05-21 17:33:23 +0530 |
commit | bff6dc7a6234535df8143cd35fa455333a4eefab (patch) | |
tree | 765761369e4ac31e2fe828cb050d8d1c6785f855 /yaksh/test_views.py | |
parent | d269458a198ba03035ade1fe83cc05eb5a2947b2 (diff) | |
download | online_test-bff6dc7a6234535df8143cd35fa455333a4eefab.tar.gz online_test-bff6dc7a6234535df8143cd35fa455333a4eefab.tar.bz2 online_test-bff6dc7a6234535df8143cd35fa455333a4eefab.zip |
Fix check condition and alter tests
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r-- | yaksh/test_views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py index 24750e3..a7ccac2 100644 --- a/yaksh/test_views.py +++ b/yaksh/test_views.py @@ -5496,8 +5496,8 @@ class TestQuestionPaper(TestCase): self.answerpaper = AnswerPaper.objects.create( user=self.user, question_paper=self.question_paper, attempt_number=1, - start_time=datetime(2014, 10, 9, 10, 8, 15, 0, tzone), - end_time=datetime(2014, 10, 9, 10, 15, 15, 0, tzone), + start_time=timezone.now() - timezone.timedelta(minutes = 10), + end_time=timezone.now() - timezone.timedelta(minutes = 1), user_ip="127.0.0.1", status="inprogress", passed=False, percent=0, marks_obtained=0, course=self.course ) |