Revert "fixes outgoing tests"

This reverts commit ef59682746.
This commit is contained in:
Mouse Reeve 2021-01-04 11:45:48 -08:00
parent ef59682746
commit e7a20bd97c

View file

@ -398,7 +398,7 @@ class Outgoing(TestCase):
def test_handle_status_mentions(self): def test_handle_status_mentions(self):
''' @mention a user in a post ''' ''' @mention a user in a post '''
user = models.User.objects.create_user( user = models.User.objects.create_user(
'rat', 'rat@rat.com', 'password', local=True, localname='rat') 'rat', 'rat@rat.com', 'password', local=True)
form = forms.CommentForm({ form = forms.CommentForm({
'content': 'hi @rat', 'content': 'hi @rat',
'user': self.local_user.id, 'user': self.local_user.id,
@ -418,7 +418,7 @@ class Outgoing(TestCase):
def test_handle_status_reply_with_mentions(self): def test_handle_status_reply_with_mentions(self):
''' reply to a post with an @mention'ed user ''' ''' reply to a post with an @mention'ed user '''
user = models.User.objects.create_user( user = models.User.objects.create_user(
'rat', 'rat@rat.com', 'password', local=True, localname='rat') 'rat', 'rat@rat.com', 'password', local=True)
form = forms.CommentForm({ form = forms.CommentForm({
'content': 'hi @rat@example.com', 'content': 'hi @rat@example.com',
'user': self.local_user.id, 'user': self.local_user.id,