diff options
author | maheshgudi | 2017-10-05 20:39:22 +0530 |
---|---|---|
committer | maheshgudi | 2017-10-05 20:41:34 +0530 |
commit | f5701e1c6ba3700b834257a4b84388485cb8818d (patch) | |
tree | 31364c34ce9b9165541e8e1b8e1c722f36399967 /yaksh/test_models.py | |
parent | 72c9a0f2a84925b9f8096702aa702e1deb49e2ce (diff) | |
download | online_test-f5701e1c6ba3700b834257a4b84388485cb8818d.tar.gz online_test-f5701e1c6ba3700b834257a4b84388485cb8818d.tar.bz2 online_test-f5701e1c6ba3700b834257a4b84388485cb8818d.zip |
Use MCQ/MCC testcases id instead of options to validate answer
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r-- | yaksh/test_models.py | 4 |
1 files changed, 2 insertions, 2 deletions
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, ) |