summaryrefslogtreecommitdiff
path: root/yaksh/settings.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-05-10 20:09:08 +0530
committerPrabhu Ramachandran2016-05-10 20:09:08 +0530
commit5c74697b00ea08a2b78615637d8b322410fca4b0 (patch)
treed5b937e90bc7d3051b9c9128c4e1560b09db1c2c /yaksh/settings.py
parentd386d24aaa662f91e4314060926dc9bc02426c7d (diff)
parentc384c60c6d7fb5d30f3f929c518e0b41e084c4c4 (diff)
downloadonline_test-5c74697b00ea08a2b78615637d8b322410fca4b0.tar.gz
online_test-5c74697b00ea08a2b78615637d8b322410fca4b0.tar.bz2
online_test-5c74697b00ea08a2b78615637d8b322410fca4b0.zip
Merge pull request #96 from ankitjavalkar/code-eval-refactor-clean2
Code evaluator refactor
Diffstat (limited to 'yaksh/settings.py')
-rw-r--r--yaksh/settings.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/yaksh/settings.py b/yaksh/settings.py
index 63bd875..70e5471 100644
--- a/yaksh/settings.py
+++ b/yaksh/settings.py
@@ -20,10 +20,12 @@ SERVER_TIMEOUT = 2
URL_ROOT = ''
code_evaluators = {
- "python": "python_code_evaluator.PythonCodeEvaluator",
- "c": "cpp_code_evaluator.CppCodeEvaluator",
- "cpp": "cpp_code_evaluator.CppCodeEvaluator",
- "java": "java_code_evaluator.JavaCodeEvaluator",
- "bash": "bash_code_evaluator.BashCodeEvaluator",
- "scilab": "scilab_code_evaluator.ScilabCodeEvaluator",
- }
+ "python": {"standardtestcase": "python_assertion_evaluator.PythonAssertionEvaluator",
+ "stdoutbasedtestcase": "python_stdout_evaluator.PythonStdoutEvaluator"
+ },
+ "c": {"standardtestcase": "cpp_code_evaluator.CppCodeEvaluator"},
+ "cpp": {"standardtestcase": "cpp_code_evaluator.CppCodeEvaluator"},
+ "java": {"standardtestcase": "java_code_evaluator.JavaCodeEvaluator"},
+ "bash": {"standardtestcase": "bash_code_evaluator.BashCodeEvaluator"},
+ "scilab": {"standardtestcase": "scilab_code_evaluator.ScilabCodeEvaluator"},
+}