diff options
author | ankitjavalkar | 2015-02-04 20:03:13 +0530 |
---|---|---|
committer | ankitjavalkar | 2015-04-26 19:28:18 +0530 |
commit | 28e2d32f9839b0e3cb3e99ce0113832627610bd7 (patch) | |
tree | 60f3943c8b6ae5696920e9fc79bf897efcf1a360 /testapp/exam/models.py | |
parent | cd9f2542d09db0e4a352dd410f626f27e23c37e4 (diff) | |
download | online_test-28e2d32f9839b0e3cb3e99ce0113832627610bd7.tar.gz online_test-28e2d32f9839b0e3cb3e99ce0113832627610bd7.tar.bz2 online_test-28e2d32f9839b0e3cb3e99ce0113832627610bd7.zip |
Add test case model for testing redesign
Conflicts:
testapp/exam/models.py
testapp/exam/views.py
Diffstat (limited to 'testapp/exam/models.py')
-rw-r--r-- | testapp/exam/models.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testapp/exam/models.py b/testapp/exam/models.py index 72fb51b..df3b485 100644 --- a/testapp/exam/models.py +++ b/testapp/exam/models.py @@ -62,6 +62,15 @@ class Question(models.Model): # Test cases for the question in the form of code that is run. test = models.TextField(blank=True) + #Test case Keyword arguments in dict form + test_keyword_args = models.TextField(blank=True) #### + + #Test case Positional arguments in list form + test_pos_args = models.TextField(blank=True) #### + + #Test case Expected answer in list form + test_expected_answer = models.TextField(blank=True) #### + # Any multiple choice options. Place one option per line. options = models.TextField(blank=True) @@ -396,3 +405,22 @@ class AssignmentUpload(models.Model): user = models.ForeignKey(Profile) assignmentQuestion = models.ForeignKey(Question) assignmentFile = models.FileField(upload_to=get_assignment_dir) + + +################################################################################ +class TestCase(models.Model): + question = models.ForeignKey(Question) + + # Test case Keyword arguments in dict form + test_keyword_args = models.TextField(blank=True) + + # Test case Positional arguments in list form + test_pos_args = models.TextField(blank=True) + + # Test case Expected answer in list form + test_expected_answer = models.TextField(blank=True) + + # Is this Test Case public or not. If it is not + # public it will not be visible to the user + # public = models.BooleanField(default=False) + |