summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-12-27 23:55:01 +0530
committerGitHub2016-12-27 23:55:01 +0530
commit48df2c1b30fa4bfc256399bbaadcbdefa555623d (patch)
treee1c4140c315655a9b57536e6550ac5eff5d67c4c /yaksh/models.py
parent48366e84b98157ac32b22b2aa19b1c1cde68afd4 (diff)
parent1b9a870975c1e2492b692ab8ec58bc3c628dcd82 (diff)
downloadonline_test-48df2c1b30fa4bfc256399bbaadcbdefa555623d.tar.gz
online_test-48df2c1b30fa4bfc256399bbaadcbdefa555623d.tar.bz2
online_test-48df2c1b30fa4bfc256399bbaadcbdefa555623d.zip
Merge pull request #167 from adityacp/new_fix_evaluators
Modify Evaluators to take moderator code as test case instead of files
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 35999d3..35e14e9 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -1154,11 +1154,14 @@ class TestCase(models.Model):
class StandardTestCase(TestCase):
test_case = models.TextField()
weight = models.FloatField(default=1.0)
+ test_case_args = models.TextField(help_text="<b>Command Line arguments for bash only</b>",
+ blank=True)
def get_field_value(self):
return {"test_case_type": "standardtestcase",
"test_case": self.test_case,
- "weight": self.weight}
+ "weight": self.weight,
+ "test_case_args": self.test_case_args}
def __str__(self):
return u'Standard TestCase | Test Case: {0}'.format(self.test_case)