def setUp(self): self.user = create_test_user() self.group = create_test_group(user=self.user) self.post = create_test_post(user=self.user, group=self.group) self.comment = create_test_comment(user=self.user, post=self.post) self.args['token'] = self.user.user_token.token self.args['comment_id'] = self.comment.id
def setUp(self): self.user_deleting = create_test_user() self.user_recieving = create_test_user() self.group = create_test_group(user=self.user_deleting) self.group.subscriptions.append(self.user_recieving) self.post = create_test_post(group=self.group, user=self.user_deleting) self.comment = create_test_comment(post=self.post, user=self.user_deleting) self.args['date'] = str(datetime.utcnow()) self.args['token'] = self.user_recieving.user_token.token