summaryrefslogtreecommitdiff
path: root/yaksh/evaluator_tests/test_grader_evaluation.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2018-06-07 16:14:37 +0530
committerGitHub2018-06-07 16:14:37 +0530
commit4eb754c2e71922819de7390d1b4993a21763de3e (patch)
treefede3f4250f3711d31da4bb7edd262edd0a90727 /yaksh/evaluator_tests/test_grader_evaluation.py
parent78ce1804d3a82327aa0da1510bb5c03d6bbff3ba (diff)
parent93bb10eae5e1364ae6492f2534f0e7864c9c4254 (diff)
downloadonline_test-4eb754c2e71922819de7390d1b4993a21763de3e.tar.gz
online_test-4eb754c2e71922819de7390d1b4993a21763de3e.tar.bz2
online_test-4eb754c2e71922819de7390d1b4993a21763de3e.zip
Merge pull request #482 from adityacp/pep8_changes
Pep8 changes
Diffstat (limited to 'yaksh/evaluator_tests/test_grader_evaluation.py')
-rw-r--r--yaksh/evaluator_tests/test_grader_evaluation.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/yaksh/evaluator_tests/test_grader_evaluation.py b/yaksh/evaluator_tests/test_grader_evaluation.py
index d11f4a0..6a05e19 100644
--- a/yaksh/evaluator_tests/test_grader_evaluation.py
+++ b/yaksh/evaluator_tests/test_grader_evaluation.py
@@ -1,9 +1,8 @@
from __future__ import unicode_literals
import unittest
-import os
from yaksh import python_assertion_evaluator
from yaksh.language_registry import _LanguageRegistry, get_registry
-from yaksh.settings import SERVER_TIMEOUT, code_evaluators
+from yaksh.settings import code_evaluators
class RegistryTestCase(unittest.TestCase):
@@ -11,32 +10,33 @@ class RegistryTestCase(unittest.TestCase):
self.registry_object = get_registry()
self.language_registry = _LanguageRegistry()
assertion_evaluator_path = ("yaksh.python_assertion_evaluator"
- ".PythonAssertionEvaluator"
- )
+ ".PythonAssertionEvaluator"
+ )
stdio_evaluator_path = ("yaksh.python_stdio_evaluator."
- "PythonStdIOEvaluator"
- )
+ "PythonStdIOEvaluator"
+ )
hook_evaluator_path = ("yaksh.hook_evaluator."
- "HookEvaluator"
- )
+ "HookEvaluator"
+ )
code_evaluators['python'] = \
- {"standardtestcase": assertion_evaluator_path,
- "stdiobasedtestcase": stdio_evaluator_path,
- "hooktestcase": hook_evaluator_path
- }
+ {"standardtestcase": assertion_evaluator_path,
+ "stdiobasedtestcase": stdio_evaluator_path,
+ "hooktestcase": hook_evaluator_path
+ }
def test_set_register(self):
- evaluator_class = self.registry_object.get_class("python",
- "standardtestcase"
+ evaluator_class = self.registry_object.get_class(
+ "python", "standardtestcase"
)
- class_name = getattr(python_assertion_evaluator,
- 'PythonAssertionEvaluator'
+ class_name = getattr(
+ python_assertion_evaluator, 'PythonAssertionEvaluator'
)
self.assertEqual(evaluator_class, class_name)
def tearDown(self):
self.registry_object = None
+
if __name__ == '__main__':
unittest.main()