def question(): question = Question() question.question = "test_question" question.answer_A = "A" question.answer_B = "B" question.answer_C = "C" question.save() return point
def quiz(): category = Category() category.name = "teste_category" category.save() question = Question() question.question = "test_question" question.answer_A = "test_A" question.answer_B = "test_B" question.answer_C = "test_C" question.save() quiz = Quiz() quiz.title = "test_quiz" quiz.category = category quiz.save() quiz.question.add(question) return quiz