diff options
author | King | 2018-07-12 13:01:00 -0700 |
---|---|---|
committer | GitHub | 2018-07-12 13:01:00 -0700 |
commit | f61742f04f417cfb60576f9904afd0dc5c537b3c (patch) | |
tree | ffb6fe127dde126e1ee88852c137895de754708f /yaksh/test_models.py | |
parent | 3d9b15c8f8df3c313045cc32f6d4aefaec6f378f (diff) | |
parent | 70839496c9e3151f59152498dbca0a3d787bdff2 (diff) | |
download | online_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.py | 4 |
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() |