summaryrefslogtreecommitdiff
path: root/testapp/exam/xmlrpc_clients.py
diff options
context:
space:
mode:
authorankitjavalkar2015-02-05 14:28:48 +0530
committerankitjavalkar2015-04-26 19:31:24 +0530
commitecb202633d3b90c55128030adb7817387bf28c95 (patch)
treebc90138ce3e57ce3c2d6db3c845673077145e4c0 /testapp/exam/xmlrpc_clients.py
parent28e2d32f9839b0e3cb3e99ce0113832627610bd7 (diff)
downloadonline_test-ecb202633d3b90c55128030adb7817387bf28c95.tar.gz
online_test-ecb202633d3b90c55128030adb7817387bf28c95.tar.bz2
online_test-ecb202633d3b90c55128030adb7817387bf28c95.zip
Modify method of passing test case attributes to code server
Conflicts: testapp/exam/admin.py testapp/exam/models.py testapp/exam/views.py
Diffstat (limited to 'testapp/exam/xmlrpc_clients.py')
-rw-r--r--testapp/exam/xmlrpc_clients.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testapp/exam/xmlrpc_clients.py b/testapp/exam/xmlrpc_clients.py
index 1aab8de..320d627 100644
--- a/testapp/exam/xmlrpc_clients.py
+++ b/testapp/exam/xmlrpc_clients.py
@@ -29,7 +29,7 @@ class CodeServerProxy(object):
"scilab": "run_scilab_code",
}
- def run_code(self, answer, test_code, test_obj, keyword_args, pos_args, expected_answer, user_dir, language): ####
+ def run_code(self, answer, test_code, test_parameter, user_dir, language): ####
"""Tests given code (`answer`) with the `test_code` supplied. If the
optional `in_dir` keyword argument is supplied it changes the directory
to that directory (it does not change it back to the original when
@@ -55,7 +55,7 @@ class CodeServerProxy(object):
try:
server = self._get_server()
method = getattr(server, method_name)
- result = method(answer, test_code, test_obj, user_dir) ####
+ result = method(answer, test_code, test_parameter, user_dir) ####
except ConnectionError:
result = [False, 'Unable to connect to any code servers!']
return result