diff options
author | prathamesh | 2020-06-30 08:36:18 +0530 |
---|---|---|
committer | prathamesh | 2020-06-30 08:36:18 +0530 |
commit | 60b1cc983c65654552c4b4a0d52114248ae0228f (patch) | |
tree | 57491da3f50eda30ccdbb827480e9021bd53f4e0 /yaksh/evaluator_tests/test_bash_evaluation.py | |
parent | c27bc87afd68266da59af6e7f2b3b8cc8db13fad (diff) | |
download | online_test-60b1cc983c65654552c4b4a0d52114248ae0228f.tar.gz online_test-60b1cc983c65654552c4b4a0d52114248ae0228f.tar.bz2 online_test-60b1cc983c65654552c4b4a0d52114248ae0228f.zip |
Fix Tests
Diffstat (limited to 'yaksh/evaluator_tests/test_bash_evaluation.py')
-rw-r--r-- | yaksh/evaluator_tests/test_bash_evaluation.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/yaksh/evaluator_tests/test_bash_evaluation.py b/yaksh/evaluator_tests/test_bash_evaluation.py index f86bf24..689f65b 100644 --- a/yaksh/evaluator_tests/test_bash_evaluation.py +++ b/yaksh/evaluator_tests/test_bash_evaluation.py @@ -129,7 +129,8 @@ class BashAssertionEvaluationTestCases(EvaluatorBaseTest): # Then self.assertFalse(result.get("success")) - self.assert_correct_output("Error", result.get("error")) + self.assert_correct_output("Error", + result.get("error")[0]["message"]) def test_infinite_loop(self): # Given @@ -416,7 +417,8 @@ class BashHookEvaluationTestCases(EvaluatorBaseTest): # Then self.assertFalse(result.get('success')) - self.assert_correct_output('Incorrect Answer', result.get('error')) + self.assert_correct_output('Incorrect Answer', + result.get('error')[0]['message']) def test_assert_with_hook(self): # Given |