Updates unit tests for new username handling

still some failing tho
This commit is contained in:
Mouse Reeve
2020-12-27 15:18:48 -08:00
parent e89bfdc572
commit 7e987fc446
14 changed files with 68 additions and 39 deletions

View File

@ -19,7 +19,8 @@ class Incoming(TestCase):
def setUp(self):
''' we need basic things, like users '''
self.local_user = models.User.objects.create_user(
'mouse', 'mouse@mouse.com', 'mouseword', local=True)
'mouse', 'mouse@mouse.com', 'mouseword',
local=True, localname='mouse')
self.local_user.remote_id = 'https://example.com/user/mouse'
self.local_user.save()
with patch('bookwyrm.models.user.set_remote_server.delay'):