summaryrefslogtreecommitdiff
path: root/yaksh/test_models.py
diff options
context:
space:
mode:
authorKing2018-07-12 13:01:00 -0700
committerGitHub2018-07-12 13:01:00 -0700
commitf61742f04f417cfb60576f9904afd0dc5c537b3c (patch)
treeffb6fe127dde126e1ee88852c137895de754708f /yaksh/test_models.py
parent3d9b15c8f8df3c313045cc32f6d4aefaec6f378f (diff)
parent70839496c9e3151f59152498dbca0a3d787bdff2 (diff)
downloadonline_test-f61742f04f417cfb60576f9904afd0dc5c537b3c.tar.gz
online_test-f61742f04f417cfb60576f9904afd0dc5c537b3c.tar.bz2
online_test-f61742f04f417cfb60576f9904afd0dc5c537b3c.zip
Merge pull request #496 from maheshgudi/questions_yaml
Question upload can take yaml and zip files
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r--yaksh/test_models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py
index eaf5bbc..e2795bb 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -434,7 +434,9 @@ class QuestionTestCases(unittest.TestCase):
def test_load_questions_with_all_fields(self):
""" Test load questions into database from Yaml """
question = Question()
- question.load_questions(self.yaml_questions_data, self.user1)
+ question.load_questions(self.yaml_questions_data, self.user1,
+ self.load_tmp_path
+ )
question_data = Question.objects.get(summary="Yaml Demo")
file = FileUpload.objects.get(question=question_data)
test_case = question_data.get_test_cases()