def comment_obj(self, content): comment = CommentFactory.build(content=content) return comment
def comment_obj(self, parent_comment): wrong_id = parent_comment.id + 123 comment = CommentFactory.build(parent_id=wrong_id) return comment
def comment_obj(self): comment = CommentFactory.build() return comment
def comment_obj(self, parent_comment): comment = CommentFactory.build(parent_id=parent_comment.id) return comment