From 0f42918020b5eb436e73e564ca8b519e84aecfa2 Mon Sep 17 00:00:00 2001 From: adityacp Date: Fri, 26 Aug 2016 11:33:10 +0530 Subject: changed function calls in tests --- yaksh/test_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yaksh') diff --git a/yaksh/test_models.py b/yaksh/test_models.py index efd7b55..1716c73 100644 --- a/yaksh/test_models.py +++ b/yaksh/test_models.py @@ -149,7 +149,7 @@ class QuestionTestCases(unittest.TestCase): """ Test dump questions into json """ question = Question() question_id = [self.question2.id] - questions_zip = question.dump_into_json(question_id, self.user2) + questions_zip = question.dump_questions(question_id, self.user2) zip_file = zipfile.ZipFile(questions_zip, "r") zip_file.extractall("/tmp/") test_case = self.question2.get_test_cases() @@ -173,7 +173,7 @@ class QuestionTestCases(unittest.TestCase): f_path = os.path.join(os.getcwd(), "yaksh", "data", "question_25", "tmp", "test.txt") question = Question() - result = question.load_from_json(self.json_questions_data, self.user1) + result = question.load_questions(self.json_questions_data, self.user1) question_data = Question.objects.get(pk=25) file = FileUpload.objects.get(question=25) test_case = question_data.get_test_cases() -- cgit