summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authormaheshgudi2017-01-06 12:28:38 +0530
committermaheshgudi2017-01-09 18:10:30 +0530
commitf4b0ea30960ffe8e3ca4ffdd757c5df2f28d3371 (patch)
treeaf1a69b67417db030e8e80f76f8b82a21cb5a004 /yaksh/models.py
parent65f8f0f4dd867c1d1647712560e3aef73b8c921f (diff)
downloadonline_test-f4b0ea30960ffe8e3ca4ffdd757c5df2f28d3371.tar.gz
online_test-f4b0ea30960ffe8e3ca4ffdd757c5df2f28d3371.tar.bz2
online_test-f4b0ea30960ffe8e3ca4ffdd757c5df2f28d3371.zip
modified variable names in models and hook_evaluator
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index cc65b9c..b859faa 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -1183,12 +1183,13 @@ class McqTestCase(TestCase):
class HookTestCase(TestCase):
- code = models.TextField()
+ hook_code = models.TextField()
weight = models.FloatField(default=1.0)
def get_field_value(self):
- return {"test_case_type": "hooktestcase", "code": self.code}
+ return {"test_case_type": "hooktestcase", "hook_code": self.hook_code,
+ "weight": self.weight}
def __str__(self):
- return u'Hook Testcase | Correct: {0}'.format(self.code)
+ return u'Hook Testcase | Correct: {0}'.format(self.hook_code)