summaryrefslogtreecommitdiff
path: root/yaksh/test_models.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-12-19 22:56:28 +0530
committerGitHub2016-12-19 22:56:28 +0530
commit1400eeb1d5af1cd1d69e015a19a319ab35d357c4 (patch)
tree1fcd565a5bf35eefadc5e5f55cf2f113e3796b66 /yaksh/test_models.py
parentf416da9901ebca437c100bb80511eb87544f709d (diff)
parentd81919b6c8418da9bed0a78f5a7d5344f0ccbc16 (diff)
downloadonline_test-1400eeb1d5af1cd1d69e015a19a319ab35d357c4.tar.gz
online_test-1400eeb1d5af1cd1d69e015a19a319ab35d357c4.tar.bz2
online_test-1400eeb1d5af1cd1d69e015a19a319ab35d357c4.zip
Merge pull request #162 from prathamesh920/question-form-interface
Question form interface
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 1aeffb6..522da89 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -142,7 +142,7 @@ class QuestionTestCases(unittest.TestCase):
self.upload_test_case.save()
self.user_answer = "demo_answer"
self.test_case_upload_data = [{"test_case": "assert fact(3)==6",
- "weight": 0.0
+ "weight": 1.0
}]
questions_data = [{"snippet": "def fact()", "active": True,
"points": 1.0,
@@ -881,7 +881,7 @@ class TestCaseTestCases(unittest.TestCase):
answer_data = {"user_answer": "demo_answer",
"test_case_data": [
{"test_case": "assert myfunc(12, 13) == 15",
- "weight": 0.0
+ "weight": 1.0
}
]
}