How to mocks logging pytest in a fastapi call
How to mocks logging pytest in a fastapi call Question: i am working in a project with fastAPI As the title says, i have an endpoint which calls a logging event when a HTTPException occurs, and when the request is called and finished Something like this: @router.get( "/chat/{chat_id}/messages/", status_code=status.HTTP_200_OK, ) async def get_messages(chat_message: GetMessageValidator = …