diff options
author | adityacp | 2016-08-26 11:33:10 +0530 |
---|---|---|
committer | adityacp | 2016-08-26 11:33:10 +0530 |
commit | 0f42918020b5eb436e73e564ca8b519e84aecfa2 (patch) | |
tree | ebb5855b071a0adefc48982da858792ffaa28981 /yaksh | |
parent | 57a1930125a94b26af5141296a769a8679e272c6 (diff) | |
download | online_test-0f42918020b5eb436e73e564ca8b519e84aecfa2.tar.gz online_test-0f42918020b5eb436e73e564ca8b519e84aecfa2.tar.bz2 online_test-0f42918020b5eb436e73e564ca8b519e84aecfa2.zip |
changed function calls in tests
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/test_models.py | 4 |
1 files changed, 2 insertions, 2 deletions
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() |