summaryrefslogtreecommitdiff
path: root/yaksh/settings.py
diff options
context:
space:
mode:
authorankitjavalkar2016-12-07 14:59:07 +0530
committerankitjavalkar2016-12-20 12:46:02 +0530
commitdee13fa4f8006d5266c02d6290b0e98d31413a9f (patch)
treed34bfed626a5e23689047318eda966c2495a2cfa /yaksh/settings.py
parent1400eeb1d5af1cd1d69e015a19a319ab35d357c4 (diff)
downloadonline_test-dee13fa4f8006d5266c02d6290b0e98d31413a9f.tar.gz
online_test-dee13fa4f8006d5266c02d6290b0e98d31413a9f.tar.bz2
online_test-dee13fa4f8006d5266c02d6290b0e98d31413a9f.zip
Refactor code server and python evaluator
Diffstat (limited to 'yaksh/settings.py')
-rw-r--r--yaksh/settings.py36
1 files changed, 21 insertions, 15 deletions
diff --git a/yaksh/settings.py b/yaksh/settings.py
index 6383999..690ddb1 100644
--- a/yaksh/settings.py
+++ b/yaksh/settings.py
@@ -19,22 +19,28 @@ SERVER_TIMEOUT = 4
# host.org/foo/exam set URL_ROOT='/foo'
URL_ROOT = ''
+# code_evaluators = {
+# "python": {"standardtestcase": "yaksh.python_assertion_evaluator.PythonAssertionEvaluator",
+# "stdiobasedtestcase": "yaksh.python_stdio_evaluator.PythonStdioEvaluator"
+# },
+# "c": {"standardtestcase": "yaksh.cpp_code_evaluator.CppCodeEvaluator",
+# "stdiobasedtestcase": "yaksh.cpp_stdio_evaluator.CppStdioEvaluator"
+# },
+# "cpp": {"standardtestcase": "yaksh.cpp_code_evaluator.CppCodeEvaluator",
+# "stdiobasedtestcase": "yaksh.cpp_stdio_evaluator.CppStdioEvaluator"
+# },
+# "java": {"standardtestcase": "yaksh.java_code_evaluator.JavaCodeEvaluator",
+# "stdiobasedtestcase": "yaksh.java_stdio_evaluator.JavaStdioEvaluator"},
+
+# "bash": {"standardtestcase": "yaksh.bash_code_evaluator.BashCodeEvaluator",
+# "stdiobasedtestcase": "yaksh.bash_stdio_evaluator.BashStdioEvaluator"
+# },
+
+# "scilab": {"standardtestcase": "yaksh.scilab_code_evaluator.ScilabCodeEvaluator"},
+# }
+
code_evaluators = {
"python": {"standardtestcase": "yaksh.python_assertion_evaluator.PythonAssertionEvaluator",
"stdiobasedtestcase": "yaksh.python_stdio_evaluator.PythonStdioEvaluator"
- },
- "c": {"standardtestcase": "yaksh.cpp_code_evaluator.CppCodeEvaluator",
- "stdiobasedtestcase": "yaksh.cpp_stdio_evaluator.CppStdioEvaluator"
- },
- "cpp": {"standardtestcase": "yaksh.cpp_code_evaluator.CppCodeEvaluator",
- "stdiobasedtestcase": "yaksh.cpp_stdio_evaluator.CppStdioEvaluator"
- },
- "java": {"standardtestcase": "yaksh.java_code_evaluator.JavaCodeEvaluator",
- "stdiobasedtestcase": "yaksh.java_stdio_evaluator.JavaStdioEvaluator"},
-
- "bash": {"standardtestcase": "yaksh.bash_code_evaluator.BashCodeEvaluator",
- "stdiobasedtestcase": "yaksh.bash_stdio_evaluator.BashStdioEvaluator"
- },
-
- "scilab": {"standardtestcase": "yaksh.scilab_code_evaluator.ScilabCodeEvaluator"},
+ }
}