Fixes setting remote user username on update

This commit is contained in:
Mouse Reeve
2021-01-04 10:42:31 -08:00
parent 4090b336db
commit 3fe7b95786
3 changed files with 11 additions and 4 deletions

View File

@@ -487,6 +487,10 @@ class Incoming(TestCase):
def test_handle_update_user(self):
''' update an existing user '''
# we only do this with remote users
self.local_user.local = False
self.local_user.save()
datafile = pathlib.Path(__file__).parent.joinpath(
'data/ap_user.json')
userdata = json.loads(datafile.read_bytes())