diff options
author | ankitjavalkar | 2016-12-22 15:55:54 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-12-22 16:51:26 +0530 |
commit | 42ed7c142e2c4ff4dccdaec2365e22d30bc276dd (patch) | |
tree | d1eb3c0039478294f4169d6e761ed42dd78a6327 /yaksh/test_models.py | |
parent | a88197040b69a556f9c7b0432350b9d1d4aad06f (diff) | |
download | online_test-42ed7c142e2c4ff4dccdaec2365e22d30bc276dd.tar.gz online_test-42ed7c142e2c4ff4dccdaec2365e22d30bc276dd.tar.bz2 online_test-42ed7c142e2c4ff4dccdaec2365e22d30bc276dd.zip |
Refactor check method for cleaner code and fixing multiple issues
- Question should skip to new question with new error rendering
- Fix test cases
Fix change_dir context manager in grader
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r-- | yaksh/test_models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py index dc69024..e5bd104 100644 --- a/yaksh/test_models.py +++ b/yaksh/test_models.py @@ -552,7 +552,7 @@ class AnswerPaperTestCases(unittest.TestCase): # Then self.assertTrue(correct) self.assertTrue(result['success']) - self.assertEqual(result['error'], 'Correct answer') + self.assertEqual(result['error'], ['Correct answer']) self.answer.correct = True self.answer.marks = 1 |