summaryrefslogtreecommitdiff
path: root/yaksh/evaluator_tests/test_bash_evaluation.py
diff options
context:
space:
mode:
authormaheshgudi2017-11-06 19:35:13 +0530
committermaheshgudi2017-11-07 14:50:09 +0530
commit08c076b7945dec8257efc10db4c9b141a8cf7f8c (patch)
tree125976d85ce6f7ce1f42db960e192864432b9393 /yaksh/evaluator_tests/test_bash_evaluation.py
parent70a35ac2a001bd9638d9db5ed645d00f94ae4666 (diff)
downloadonline_test-08c076b7945dec8257efc10db4c9b141a8cf7f8c.tar.gz
online_test-08c076b7945dec8257efc10db4c9b141a8cf7f8c.tar.bz2
online_test-08c076b7945dec8257efc10db4c9b141a8cf7f8c.zip
Modify testcases wrt changes in assertion error output
Diffstat (limited to 'yaksh/evaluator_tests/test_bash_evaluation.py')
-rw-r--r--yaksh/evaluator_tests/test_bash_evaluation.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/yaksh/evaluator_tests/test_bash_evaluation.py b/yaksh/evaluator_tests/test_bash_evaluation.py
index 2faa7bf..5542710 100644
--- a/yaksh/evaluator_tests/test_bash_evaluation.py
+++ b/yaksh/evaluator_tests/test_bash_evaluation.py
@@ -104,7 +104,9 @@ class BashAssertionEvaluationTestCases(EvaluatorBaseTest):
# Then
self.assertFalse(result.get("success"))
- self.assert_correct_output(self.timeout_msg, result.get("error"))
+ self.assert_correct_output(self.timeout_msg,
+ result.get("error")[0]["message"]
+ )
parent_proc = Process(os.getpid()).children()
if parent_proc:
children_procs = Process(parent_proc[0].pid)
@@ -533,7 +535,9 @@ class BashHookEvaluationTestCases(EvaluatorBaseTest):
# Then
self.assertFalse(result.get('success'))
- self.assert_correct_output(self.timeout_msg, result.get('error'))
+ self.assert_correct_output(self.timeout_msg,
+ result.get("error")[0]["message"]
+ )
parent_proc = Process(os.getpid()).children()
if parent_proc:
children_procs = Process(parent_proc[0].pid)