From e90f369ff90861077b276d1588f90fa804c55a42 Mon Sep 17 00:00:00 2001 From: adityacp Date: Fri, 23 Dec 2016 11:49:18 +0530 Subject: Add new StandardTestCase model field for command line args --- yaksh/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/yaksh/models.py b/yaksh/models.py index 6e1744c..8ef1097 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -1148,11 +1148,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="Command Line arguments for bash only", + 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'Question: {0} | Test Case: {1}'.format(self.question, -- cgit