From f4b0ea30960ffe8e3ca4ffdd757c5df2f28d3371 Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Fri, 6 Jan 2017 12:28:38 +0530 Subject: modified variable names in models and hook_evaluator --- yaksh/models.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'yaksh/models.py') 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) -- cgit