diff options
author | ankitjavalkar | 2015-05-12 17:35:16 +0530 |
---|---|---|
committer | ankitjavalkar | 2015-05-12 17:35:16 +0530 |
commit | 5b23647de575fd90552807260a4b8e0a96ab6afe (patch) | |
tree | 1c0c3f2e8605d6f36405c57cbe5de9a895a47958 /testapp/exam/scilab_code_evaluator.py | |
parent | 3e29dc7f6df7019562b179872b43cb13c7483738 (diff) | |
download | online_test-5b23647de575fd90552807260a4b8e0a96ab6afe.tar.gz online_test-5b23647de575fd90552807260a4b8e0a96ab6afe.tar.bz2 online_test-5b23647de575fd90552807260a4b8e0a96ab6afe.zip |
Seperated tests into seperate folder, formatting changes
Diffstat (limited to 'testapp/exam/scilab_code_evaluator.py')
-rw-r--r-- | testapp/exam/scilab_code_evaluator.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testapp/exam/scilab_code_evaluator.py b/testapp/exam/scilab_code_evaluator.py index a4628a2..53640cc 100644 --- a/testapp/exam/scilab_code_evaluator.py +++ b/testapp/exam/scilab_code_evaluator.py @@ -14,7 +14,8 @@ class ScilabCodeEvaluator(CodeEvaluator): """Tests the Scilab code obtained from Code Server""" def __init__(self, test_case_data, test, language, user_answer, ref_code_path=None, in_dir=None): - super(ScilabCodeEvaluator, self).__init__(test_case_data, test, language, user_answer, + super(ScilabCodeEvaluator, self).__init__(test_case_data, test, + language, user_answer, ref_code_path, in_dir) self.submit_path = self.create_submit_code_file('function.sci') self.test_case_args = self._setup() @@ -23,7 +24,7 @@ class ScilabCodeEvaluator(CodeEvaluator): def _setup(self): super(ScilabCodeEvaluator, self)._setup() - ref_path, test_case_path = self.set_test_code_file_path(self.ref_code_path) + ref_path, test_case_path = self._set_test_code_file_path(self.ref_code_path) return ref_path, # Return as a tuple |