summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authoradityacp2016-12-23 12:03:06 +0530
committeradityacp2016-12-23 12:03:06 +0530
commitdd1eeca0267159ddde3036c706818dec0b7e5f45 (patch)
tree691018bbce3e0a380bb0dd63eb9cc9c5062bd56f /yaksh
parente90f369ff90861077b276d1588f90fa804c55a42 (diff)
downloadonline_test-dd1eeca0267159ddde3036c706818dec0b7e5f45.tar.gz
online_test-dd1eeca0267159ddde3036c706818dec0b7e5f45.tar.bz2
online_test-dd1eeca0267159ddde3036c706818dec0b7e5f45.zip
Change test for load_questions and consolidate_answer_data functions
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/test_models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py
index 317c832..ee141bc 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -145,6 +145,7 @@ class QuestionTestCases(unittest.TestCase):
self.user_answer = "demo_answer"
self.test_case_upload_data = [{"test_case": "assert fact(3)==6",
"test_case_type": "standardtestcase",
+ "test_case_args": "",
"weight": 1.0
}]
questions_data = [{"snippet": "def fact()", "active": True,
@@ -893,6 +894,7 @@ class TestCaseTestCases(unittest.TestCase):
},
'test_case_data': [{'test_case': 'assert myfunc(12, 13) == 15',
'test_case_type': 'standardtestcase',
+ 'test_case_args': "",
'weight': 1.0
}]
}