summaryrefslogtreecommitdiff
path: root/api/tests.py
diff options
context:
space:
mode:
authorPalaparthy Adityachandra2020-11-17 15:49:01 +0530
committerGitHub2020-11-17 15:49:01 +0530
commit5f92f4db6e108b338ea6509052f0990f1f94c6cb (patch)
tree13e55275326aa2d533d36ae804d36ba833f0bb41 /api/tests.py
parentd1de6058253c5df8984ac36d9de33396a368edce (diff)
parent6aef69d6e5a3eb3dde2d39e0bb9e1dd5b05a8b3c (diff)
downloadonline_test-5f92f4db6e108b338ea6509052f0990f1f94c6cb.tar.gz
online_test-5f92f4db6e108b338ea6509052f0990f1f94c6cb.tar.bz2
online_test-5f92f4db6e108b338ea6509052f0990f1f94c6cb.zip
Merge branch 'master' into tinymce
Diffstat (limited to 'api/tests.py')
-rw-r--r--api/tests.py3
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