mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 11:19:23 +02:00
Fix #809: Added admin options to disable login for users, ensure related content is deleted when deleting a user account
This commit is contained in:
parent
62a2d949ca
commit
048339c7a2
5 changed files with 63 additions and 1 deletions
|
@ -219,3 +219,13 @@ def test_user_get_quota_status(factories, preferences, mocker):
|
|||
"errored": 3,
|
||||
"finished": 4,
|
||||
}
|
||||
|
||||
|
||||
def test_deleting_users_deletes_associated_actor(factories):
|
||||
actor = factories["federation.Actor"]()
|
||||
user = factories["users.User"](actor=actor)
|
||||
|
||||
user.delete()
|
||||
|
||||
with pytest.raises(actor.DoesNotExist):
|
||||
actor.refresh_from_db()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue