diff options
author | mahesh | 2018-01-19 12:44:57 +0530 |
---|---|---|
committer | maheshgudi | 2018-03-16 15:17:20 +0530 |
commit | c290bff7d72e158de4158bf0411226c77eab6b73 (patch) | |
tree | 1976acc4db1a1ceb94308b54a501bb22fe939c8f /yaksh/test_models.py | |
parent | 7fc24f1d4fe9208867ab38d600fa35a3c7b31386 (diff) | |
download | online_test-c290bff7d72e158de4158bf0411226c77eab6b73.tar.gz online_test-c290bff7d72e158de4158bf0411226c77eab6b73.tar.bz2 online_test-c290bff7d72e158de4158bf0411226c77eab6b73.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) |