diff options
author | ankitjavalkar | 2015-02-04 20:03:13 +0530 |
---|---|---|
committer | ankitjavalkar | 2015-04-26 19:28:18 +0530 |
commit | 28e2d32f9839b0e3cb3e99ce0113832627610bd7 (patch) | |
tree | 60f3943c8b6ae5696920e9fc79bf897efcf1a360 /testapp/exam/views.py | |
parent | cd9f2542d09db0e4a352dd410f626f27e23c37e4 (diff) | |
download | online_test-28e2d32f9839b0e3cb3e99ce0113832627610bd7.tar.gz online_test-28e2d32f9839b0e3cb3e99ce0113832627610bd7.tar.bz2 online_test-28e2d32f9839b0e3cb3e99ce0113832627610bd7.zip |
Add test case model for testing redesign
Conflicts:
testapp/exam/models.py
testapp/exam/views.py
Diffstat (limited to 'testapp/exam/views.py')
-rw-r--r-- | testapp/exam/views.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/testapp/exam/views.py b/testapp/exam/views.py index 11aca06..9b6ce69 100644 --- a/testapp/exam/views.py +++ b/testapp/exam/views.py @@ -959,9 +959,18 @@ def validate_answer(user, user_answer, question): elif question.type == 'code': user_dir = get_user_dir(user) success, message = code_server.run_code(user_answer, question.test, - user_dir, question.language) + question.test_keyword_args, question.test_pos_args, + question.test_expected_answer, user_dir, question.language) #### if success: correct = True + + #### + print "MESS>>>", question.test + print "POS>>>", question.test_pos_args + print "KEY>>>", question.test_keyword_args + print "EXP>>>", question.test_expected_answer + #### + return correct, success, message |