Example #1
0
 def comment(self, logged_in_user):
     return CommentFactory.create(author=logged_in_user.id)
Example #2
0
 def comment(self):
     return CommentFactory.create()
Example #3
0
 def comment(self, post):
     return CommentFactory.create(post=post, is_reply=False)
Example #4
0
 def comment(self, post):
     return CommentFactory.create(post=post)
Example #5
0
 def comment(self, post, logged_in_user):
     return CommentFactory.create(post=post,
                                  likes=[str(logged_in_user.id)])
Example #6
0
 def comment(self, post, logged_in_user):
     return CommentFactory.create(post=post, author=logged_in_user)