diff options
author | mahesh | 2018-01-19 12:44:57 +0530 |
---|---|---|
committer | maheshgudi | 2018-03-16 15:15:50 +0530 |
commit | 03e74a964504e98cb0f01678ce12a626581a406b (patch) | |
tree | 1976acc4db1a1ceb94308b54a501bb22fe939c8f /yaksh/test_models.py | |
parent | 98775e565c99fd6486fb5908a5ca9be491db9b1c (diff) | |
download | online_test-03e74a964504e98cb0f01678ce12a626581a406b.tar.gz online_test-03e74a964504e98cb0f01678ce12a626581a406b.tar.bz2 online_test-03e74a964504e98cb0f01678ce12a626581a406b.zip |
Add test cases for shuffle testcase
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r-- | yaksh/test_models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py index cd4279b..381a2f3 100644 --- a/yaksh/test_models.py +++ b/yaksh/test_models.py @@ -113,6 +113,7 @@ def tearDownModule(): Lesson.objects.all().delete() LearningUnit.objects.all().delete() LearningModule.objects.all().delete() + AnswerPaper.objects.all().delete() ############################################################################### @@ -848,7 +849,7 @@ class AnswerPaperTestCases(unittest.TestCase): ) self.qtn_paper_with_single_question.save() - all_questions = Question.objects.all() + all_questions = Question.objects.filter(user=self.user) self.questions = all_questions[0:3] self.start_time = timezone.now() self.end_time = self.start_time + timedelta(minutes=20) |