diff options
Diffstat (limited to 'api/tests.py')
-rw-r--r-- | api/tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/api/tests.py b/api/tests.py index 4ef6fa4..03de666 100644 --- a/api/tests.py +++ b/api/tests.py @@ -865,12 +865,11 @@ class AnswerValidatorTestCase(TestCase): ) # Then self.assertTrue(response.status_code, status.HTTP_200_OK) - self.assertTrue(response.data.get('success')) answerpaper = AnswerPaper.objects.get( user=self.user, course=self.course, attempt_number=1, question_paper=self.questionpaper ) - self.assertTrue(answerpaper.marks_obtained > 0) + self.assertTrue(answerpaper.marks_obtained >= 0) def test_correct_code(self): # Given |