From f5701e1c6ba3700b834257a4b84388485cb8818d Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Thu, 5 Oct 2017 20:39:22 +0530 Subject: Use MCQ/MCC testcases id instead of options to validate answer --- yaksh/test_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yaksh/test_models.py') diff --git a/yaksh/test_models.py b/yaksh/test_models.py index ac90c53..2c83024 100644 --- a/yaksh/test_models.py +++ b/yaksh/test_models.py @@ -592,7 +592,7 @@ class AnswerPaperTestCases(unittest.TestCase): def test_validate_and_regrade_mcc_correct_answer(self): # Given - mcc_answer = ['a'] + mcc_answer = [str(self.mcc_based_testcase.id)] self.answer = Answer(question=self.question3, answer=mcc_answer, ) @@ -629,7 +629,7 @@ class AnswerPaperTestCases(unittest.TestCase): def test_validate_and_regrade_mcq_correct_answer(self): # Given - mcq_answer = 'a' + mcq_answer = str(self.mcq_based_testcase.id) self.answer = Answer(question=self.question2, answer=mcq_answer, ) -- cgit