summaryrefslogtreecommitdiff
path: root/yaksh/evaluator_tests/test_scilab_evaluation.py
diff options
context:
space:
mode:
authorprathamesh2020-07-01 19:31:15 +0530
committerprathamesh2020-07-01 19:31:15 +0530
commit46ef4a4a563b16bb96d09cb17496afb731e616ad (patch)
treeae8bc21534092c75080cce1d0d4f4befb6be2897 /yaksh/evaluator_tests/test_scilab_evaluation.py
parent60b1cc983c65654552c4b4a0d52114248ae0228f (diff)
downloadonline_test-46ef4a4a563b16bb96d09cb17496afb731e616ad.tar.gz
online_test-46ef4a4a563b16bb96d09cb17496afb731e616ad.tar.bz2
online_test-46ef4a4a563b16bb96d09cb17496afb731e616ad.zip
Modify tests to handle hidden tests
Diffstat (limited to 'yaksh/evaluator_tests/test_scilab_evaluation.py')
-rw-r--r--yaksh/evaluator_tests/test_scilab_evaluation.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/evaluator_tests/test_scilab_evaluation.py b/yaksh/evaluator_tests/test_scilab_evaluation.py
index 41abf94..b08d348 100644
--- a/yaksh/evaluator_tests/test_scilab_evaluation.py
+++ b/yaksh/evaluator_tests/test_scilab_evaluation.py
@@ -48,7 +48,7 @@ class ScilabEvaluationTestCases(EvaluatorBaseTest):
""")
self.test_case_data = [{"test_case": self.tc_data,
"test_case_type": "standardtestcase",
- "weight": 0.0
+ "weight": 0.0, 'hidden': True
}]
self.in_dir = tmp_in_dir_path
self.file_paths = None
@@ -93,6 +93,7 @@ class ScilabEvaluationTestCases(EvaluatorBaseTest):
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
self.assertFalse(result.get("success"))
+ self.assertTrue(result.get("error")[0]['hidden'])
self.assert_correct_output('error', result.get("error")[0]['message'])
def test_incorrect_answer(self):
@@ -111,6 +112,7 @@ class ScilabEvaluationTestCases(EvaluatorBaseTest):
result = grader.evaluate(kwargs)
lines_of_error = len(result.get('error')[0]['message'].splitlines())
self.assertFalse(result.get('success'))
+ self.assertTrue(result.get("error")[0]['hidden'])
self.assert_correct_output("Message",
result.get('error')[0]["message"])
self.assertTrue(lines_of_error > 1)