def test_delete_reply_by_id(self, mocked_delete_reply):
		post_service.delete_reply_by_id(1, 1)
		self.assertTrue(mocked_delete_reply.called)
Example #2
0
def delete_reply(reply_id):
	current_user = g.user

	return { "error" : not post_service.delete_reply_by_id(current_user.user_id, reply_id) }