summaryrefslogtreecommitdiff
path: root/yaksh/test_models.py
diff options
context:
space:
mode:
authormaheshgudi2018-07-11 18:48:31 +0530
committermaheshgudi2018-07-11 18:48:31 +0530
commit00f01038b2a4653d87ca2529009fa873f6a4a26d (patch)
tree6a27d000094906dd25c09c83c8dbd60c31cb9978 /yaksh/test_models.py
parent727bcd630f30445e767583ceb65fdbf3ff65c2a0 (diff)
downloadonline_test-00f01038b2a4653d87ca2529009fa873f6a4a26d.tar.gz
online_test-00f01038b2a4653d87ca2529009fa873f6a4a26d.tar.bz2
online_test-00f01038b2a4653d87ca2529009fa873f6a4a26d.zip
Support for multiple yaml 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()