summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprathamesh2016-12-19 08:57:57 +0530
committerprathamesh2016-12-19 08:57:57 +0530
commitae6e686f2fe3c1f810b57513c590f6a49b7a83e1 (patch)
tree17f2e85a392359447b35cb64ee17acb56255ee2b
parent1662f80d18ea00ad96bab28762352d8f6068f732 (diff)
downloadonline_test-ae6e686f2fe3c1f810b57513c590f6a49b7a83e1.tar.gz
online_test-ae6e686f2fe3c1f810b57513c590f6a49b7a83e1.tar.bz2
online_test-ae6e686f2fe3c1f810b57513c590f6a49b7a83e1.zip
changed default weight in model testcase to 1
-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 e7f3016..eda2227 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,
@@ -880,7 +880,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
}
]
}