From 92150265c82f3d1f6e4eb382447ae8e448cd406f Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Wed, 13 May 2015 18:20:26 +0530 Subject: Fix import paths, formatting, views and minor errors - Submitted file path should be set after changing directory - Change timeout duration in java test case - Set shell=True in _compile_command - Fix errors in code as per tests --- testapp/tests/test_code_evaluation.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'testapp/tests/test_code_evaluation.py') diff --git a/testapp/tests/test_code_evaluation.py b/testapp/tests/test_code_evaluation.py index fa2b1fa..a13eccc 100644 --- a/testapp/tests/test_code_evaluation.py +++ b/testapp/tests/test_code_evaluation.py @@ -1,8 +1,8 @@ import unittest import os -from exam import python_code_evaluator -from exam.language_registry import _LanguageRegistry, set_registry, get_registry -from exam.settings import SERVER_TIMEOUT +from testapp.exam import python_code_evaluator +from testapp.exam.language_registry import _LanguageRegistry, set_registry, get_registry +from testapp.exam.settings import SERVER_TIMEOUT class RegistryTestCase(unittest.TestCase): @@ -13,7 +13,7 @@ class RegistryTestCase(unittest.TestCase): def test_set_register(self): class_name = getattr(python_code_evaluator, 'PythonCodeEvaluator') - self.registry_object.register("python", "exam.python_code_evaluator.PythonCodeEvaluator") + self.registry_object.register("python", "testapp.exam.python_code_evaluator.PythonCodeEvaluator") self.assertEquals(self.registry_object.get_class("python"), class_name) def tearDown(self): @@ -21,4 +21,4 @@ class RegistryTestCase(unittest.TestCase): if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main() -- cgit