summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorCruiseDevice2020-09-10 23:28:01 +0530
committerankitjavalkar2020-10-08 10:42:50 +0530
commit05ecae144ba161ee88ae98ff4313c9e5480bb604 (patch)
treef6ee0552719cb458912d5be1542ff52ddee86480 /api
parentc00575ae4b0d1bf128b98dd6319abf87357fee88 (diff)
downloadonline_test-05ecae144ba161ee88ae98ff4313c9e5480bb604.tar.gz
online_test-05ecae144ba161ee88ae98ff4313c9e5480bb604.tar.bz2
online_test-05ecae144ba161ee88ae98ff4313c9e5480bb604.zip
Fix API failing test case
Diffstat (limited to 'api')
-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