Ejemplo n.º 1
0
 def get(self, postId):
     """Endpoint that gets all questions"""
     time_start = time.time()
     return_data = QuestionServices.getAllQuestions(postId)
     time_end = time.time()
     monitor(time_start, time_end, path, "get")
     return return_data["data"], return_data["status"], {'message': return_data["message"]}
Ejemplo n.º 2
0
 def test_get_all_questions(self):
     response = QuestionServices.getAllQuestions(postId)
     assert response["status"] == 200
     assert response["message"] == 'Preguntas obtenidas satisfactoriamente'