Exemple #1
0
 def comment_obj(self, content):
     comment = CommentFactory.build(content=content)
     return comment
Exemple #2
0
 def comment_obj(self, parent_comment):
     wrong_id = parent_comment.id + 123
     comment = CommentFactory.build(parent_id=wrong_id)
     return comment
Exemple #3
0
 def comment_obj(self):
     comment = CommentFactory.build()
     return comment
Exemple #4
0
 def comment_obj(self, parent_comment):
     comment = CommentFactory.build(parent_id=parent_comment.id)
     return comment