summaryrefslogtreecommitdiff
path: root/yaksh/evaluator_tests
diff options
context:
space:
mode:
authorPalaparthy Adityachandra2021-03-04 21:35:21 +0530
committerGitHub2021-03-04 21:35:21 +0530
commit85a2b6b61c74e2ed42d6c78f6b502a3c72dcf9ca (patch)
treedc8b56154af6981894a798c6f7c209cc90b39191 /yaksh/evaluator_tests
parentb2bf7b9fef33d59cd1e55776a51577d66a252322 (diff)
parent0697dc314471a2bde90d52b1726914c85a360470 (diff)
downloadonline_test-85a2b6b61c74e2ed42d6c78f6b502a3c72dcf9ca.tar.gz
online_test-85a2b6b61c74e2ed42d6c78f6b502a3c72dcf9ca.tar.bz2
online_test-85a2b6b61c74e2ed42d6c78f6b502a3c72dcf9ca.zip
Merge pull request #820 from adityacp/fix_upload_marks
Refactor upload marks for a quiz
Diffstat (limited to 'yaksh/evaluator_tests')
-rw-r--r--yaksh/evaluator_tests/test_simple_question_types.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/yaksh/evaluator_tests/test_simple_question_types.py b/yaksh/evaluator_tests/test_simple_question_types.py
index 5edd545..13d639e 100644
--- a/yaksh/evaluator_tests/test_simple_question_types.py
+++ b/yaksh/evaluator_tests/test_simple_question_types.py
@@ -662,16 +662,8 @@ class ArrangeQuestionTestCases(unittest.TestCase):
regrade_answer.answer = 1
regrade_answer.save()
details = self.answerpaper.regrade(self.question1.id)
- err_msg = dedent("""\
- User: {0}; Quiz: {1}; Question: {2}.
- {3} answer not a list.""".format(
- self.user.username,
- self.quiz.description,
- self.question1.summary,
- self.question1.type
- ))
self.assertFalse(details[0])
- self.assertEqual(details[1], err_msg)
+ self.assertIn("arrange answer not a list", details[1])
# Try regrade with incorrect answer
# When