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