diff options
author | ankitjavalkar | 2020-10-08 16:12:01 +0530 |
---|---|---|
committer | GitHub | 2020-10-08 16:12:01 +0530 |
commit | aaf8f36bce5fff6c36bcbac3fa038ae99304b73f (patch) | |
tree | b00c763f1ef38a3abf43f4f337d97f67ae04337a /api/tests.py | |
parent | f61351f6a4e7a6150e66ca39f23ac14f9a60de96 (diff) | |
parent | 78eb6dc42e73551c2bb9972e53a2d7dd3b81e7d7 (diff) | |
download | online_test-aaf8f36bce5fff6c36bcbac3fa038ae99304b73f.tar.gz online_test-aaf8f36bce5fff6c36bcbac3fa038ae99304b73f.tar.bz2 online_test-aaf8f36bce5fff6c36bcbac3fa038ae99304b73f.zip |
Merge pull request #778 from ankitjavalkar/cruise-comments-under-video
[Rebased] Comments under video lesson
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 |