summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authormahesh2017-08-18 02:13:10 +0530
committermahesh2017-08-18 12:10:08 +0530
commit0ffc49f91dd9e21a6b9917b7841999bf853c3c9f (patch)
tree59fee2d353d6de5042a5fe1b0df5b5b34f62d8f9 /yaksh/models.py
parenta9c4aab85fb9b8edce53212548f8d0c285832dc4 (diff)
downloadonline_test-0ffc49f91dd9e21a6b9917b7841999bf853c3c9f.tar.gz
online_test-0ffc49f91dd9e21a6b9917b7841999bf853c3c9f.tar.bz2
online_test-0ffc49f91dd9e21a6b9917b7841999bf853c3c9f.zip
Adds test cases for yaml
- Fixes selenium test cases, test_models, test_views - Fixes create demo question paper
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 476bc16..b4c665c 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -909,8 +909,13 @@ class QuestionPaper(models.Model):
total_marks=6.0,
shuffle_questions=True
)
+ summaries = ['Roots of quadratic equation', 'Print Output',
+ 'Adding decimals', 'For Loop over String',
+ 'Hello World in File', 'Extract columns from files',
+ 'Check Palindrome', 'Add 3 numbers', 'Reverse a string'
+ ]
questions = Question.objects.filter(active=True,
- summary="Yaksh Demo Question",
+ summary__in=summaries,
user=user)
q_order = [str(que.id) for que in questions]
question_paper.fixed_question_order = ",".join(q_order)