summaryrefslogtreecommitdiff
path: root/yaksh/test_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/test_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/test_models.py')
-rw-r--r--yaksh/test_models.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py
index d5ac394..a940c0f 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -1,7 +1,7 @@
import unittest
from yaksh.models import User, Profile, Question, Quiz, QuestionPaper,\
QuestionSet, AnswerPaper, Answer, Course, StandardTestCase,\
- StdIOBasedTestCase, FileUpload, McqTestCase, AssignmentUpload
+ StdIOBasedTestCase, FileUpload, McqTestCase, AssignmentUpload
import json
import ruamel.yaml as yaml
from datetime import datetime, timedelta
@@ -160,7 +160,9 @@ class QuestionTestCases(unittest.TestCase):
"language": "Python", "type": "Code",
"testcase": self.test_case_upload_data,
"files": [[file1, 0]],
- "summary": "Yaml Demo"}]
+ "summary": "Yaml Demo",
+ "tags": ['yaml_demo']
+ }]
self.yaml_questions_data = yaml.safe_dump_all(questions_data)
def tearDown(self):