summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authorprathamesh2017-09-01 16:51:37 +0530
committerprathamesh2017-09-01 16:51:37 +0530
commite2c65655dcdc5558cfb4ab668c3012024d27ac75 (patch)
tree9ec6504e6bdc2f35f37260981ab584d1b9b3b9b4 /yaksh/views.py
parent3d9bce5471d04bf50e03155d3cd67bdae44a4fcc (diff)
downloadonline_test-e2c65655dcdc5558cfb4ab668c3012024d27ac75.tar.gz
online_test-e2c65655dcdc5558cfb4ab668c3012024d27ac75.tar.bz2
online_test-e2c65655dcdc5558cfb4ab668c3012024d27ac75.zip
Removed all the checkpoints set for selenium tests on travis
javascript strings includes method changed to indexOf, as includes belongs to ES6. This was the main reason for failure of selenium tests on travis.
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index dd50d24..fc550ed 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -475,7 +475,6 @@ def check(request, q_id, attempt_num=None, questionpaper_id=None):
current_question = get_object_or_404(Question, pk=q_id)
if request.method == 'POST':
- print("check post")
# Add the answer submitted, regardless of it being correct or not.
if current_question.type == 'mcq':
user_answer = request.POST.get('answer')
@@ -559,8 +558,6 @@ def check(request, q_id, attempt_num=None, questionpaper_id=None):
result)
return show_question(request, next_question, paper, error_message)
else:
- print("post response")
- print(result)
return JsonResponse(result)
else:
next_question, error_message, paper = _update_paper(request, uid, result)
@@ -579,7 +576,6 @@ def get_results(request, uid):
result = json.loads(result_state.get('result'))
next_question, error_message, paper = _update_paper(request, uid, result)
return show_question(request, next_question, paper, error_message)
- print("get result")
return JsonResponse(result)