summaryrefslogtreecommitdiff
path: root/testapp/tests/test_c_cpp_evaluation.py
diff options
context:
space:
mode:
authorankitjavalkar2015-05-13 18:20:26 +0530
committerankitjavalkar2015-05-20 14:58:05 +0530
commit92150265c82f3d1f6e4eb382447ae8e448cd406f (patch)
treef14a18f7e821d87b098a93610ece8772d568563b /testapp/tests/test_c_cpp_evaluation.py
parent13317f56278969cb6568026d099e15166bfc5d6c (diff)
downloadonline_test-92150265c82f3d1f6e4eb382447ae8e448cd406f.tar.gz
online_test-92150265c82f3d1f6e4eb382447ae8e448cd406f.tar.bz2
online_test-92150265c82f3d1f6e4eb382447ae8e448cd406f.zip
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
Diffstat (limited to 'testapp/tests/test_c_cpp_evaluation.py')
-rw-r--r--testapp/tests/test_c_cpp_evaluation.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/testapp/tests/test_c_cpp_evaluation.py b/testapp/tests/test_c_cpp_evaluation.py
index b820963..fbb8769 100644
--- a/testapp/tests/test_c_cpp_evaluation.py
+++ b/testapp/tests/test_c_cpp_evaluation.py
@@ -1,7 +1,7 @@
import unittest
import os
-from exam.cpp_code_evaluator import CppCodeEvaluator
-from exam.settings import SERVER_TIMEOUT
+from testapp.exam.cpp_code_evaluator import CppCodeEvaluator
+from testapp.exam.settings import SERVER_TIMEOUT
class CEvaluationTestCases(unittest.TestCase):
def setUp(self):
@@ -74,4 +74,4 @@ class CppEvaluationTestCases(unittest.TestCase):
self.assertEquals(result.get("error"), self.timeout_msg)
if __name__ == '__main__':
- unittest.main() \ No newline at end of file
+ unittest.main()