diff options
author | adityacp | 2016-12-23 11:49:18 +0530 |
---|---|---|
committer | adityacp | 2016-12-23 11:49:18 +0530 |
commit | e90f369ff90861077b276d1588f90fa804c55a42 (patch) | |
tree | c0176a15fd89428196f3ba0c49e92af1b0971128 | |
parent | 6157e1dd4e1babcba1264d11e91e89ef75ac4091 (diff) | |
download | online_test-e90f369ff90861077b276d1588f90fa804c55a42.tar.gz online_test-e90f369ff90861077b276d1588f90fa804c55a42.tar.bz2 online_test-e90f369ff90861077b276d1588f90fa804c55a42.zip |
Add new StandardTestCase model field for command line args
-rw-r--r-- | yaksh/models.py | 5 |
1 files changed, 4 insertions, 1 deletions
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="<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'Question: {0} | Test Case: {1}'.format(self.question, |