diff options
author | ankitjavalkar | 2020-09-29 16:45:04 +0530 |
---|---|---|
committer | ankitjavalkar | 2020-09-29 17:00:10 +0530 |
commit | 668f3ab5b74977df1793393d596f489d15e2e830 (patch) | |
tree | 91d0b3b4a7c0a16cfe553c0cb28f4f08e078b13a | |
parent | ba736ced194434e77909a178463e4cb41d6ee367 (diff) | |
download | online_test-668f3ab5b74977df1793393d596f489d15e2e830.tar.gz online_test-668f3ab5b74977df1793393d596f489d15e2e830.tar.bz2 online_test-668f3ab5b74977df1793393d596f489d15e2e830.zip |
Fix tests
-rw-r--r-- | yaksh/test_models.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py index 7ef1ca7..11ab6cd 100644 --- a/yaksh/test_models.py +++ b/yaksh/test_models.py @@ -994,7 +994,7 @@ class QuestionPaperTestCases(unittest.TestCase): # create two QuestionSet for random questions # QuestionSet 1 self.question_set_1 = QuestionSet.objects.create( - marks=2, num_questions=2 + marks=1, num_questions=2 ) # add pool of questions for random sampling @@ -1007,7 +1007,7 @@ class QuestionPaperTestCases(unittest.TestCase): # QuestionSet 2 self.question_set_2 = QuestionSet.objects.create( - marks=3, num_questions=3 + marks=1, num_questions=3 ) # add pool of questions @@ -1074,7 +1074,7 @@ class QuestionPaperTestCases(unittest.TestCase): """ Test update_total_marks() method of Question Paper""" self.assertEqual(self.question_paper.total_marks, 0) self.question_paper.update_total_marks() - self.assertEqual(self.question_paper.total_marks, 15) + self.assertEqual(self.question_paper.total_marks, 7.0) def test_get_random_questions(self): """ Test get_random_questions() method of Question Paper""" |