summaryrefslogtreecommitdiff
path: root/yaksh/test_models.py
diff options
context:
space:
mode:
authorprathamesh2016-09-23 15:21:14 +0530
committerprathamesh2016-09-23 15:21:14 +0530
commitd08af6e795bf2c0edc50fd9a61a924a588f8e7ad (patch)
tree85e209b3c13788458db353d1bb2f09044f1efedb /yaksh/test_models.py
parent752b578cb5204a9a3cd91c2257ddd201d67c3c12 (diff)
downloadonline_test-d08af6e795bf2c0edc50fd9a61a924a588f8e7ad.tar.gz
online_test-d08af6e795bf2c0edc50fd9a61a924a588f8e7ad.tar.bz2
online_test-d08af6e795bf2c0edc50fd9a61a924a588f8e7ad.zip
for test to pass
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r--yaksh/test_models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py
index 3909652..7e79b09 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -2,7 +2,7 @@ import unittest
from yaksh.models import User, Profile, Question, Quiz, QuestionPaper,\
QuestionSet, AnswerPaper, Answer, Course, StandardTestCase,\
StdioBasedTestCase, FileUpload, McqTestCase
-from yaksh.code_server import ServerPool, SERVER_POOL_PORT
+from yaksh.code_server import ServerPool
from yaksh import settings
from yaksh.xmlrpc_clients import CodeServerProxy
import json
@@ -526,7 +526,7 @@ class AnswerPaperTestCases(unittest.TestCase):
settings.code_evaluators['python']['standardtestcase'] = \
"yaksh.python_assertion_evaluator.PythonAssertionEvaluator"
ports = range(9001, 9002)
- server_pool = ServerPool(ports=ports, pool_port=SERVER_POOL_PORT)
+ server_pool = ServerPool(ports=ports, pool_port=56782)
self.server_pool = server_pool
self.server_thread = t = Thread(target=server_pool.run)
t.start()