Admin UI to list and manage remote and local accounts

This commit is contained in:
Eliot Berriot 2019-01-03 17:10:02 +01:00
parent b1194e50de
commit e186c6bb06
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
18 changed files with 797 additions and 283 deletions

View file

@ -97,3 +97,22 @@ def test_domain_stats(factories):
domain = factories["federation.Domain"]()
assert domain.get_stats() == expected
def test_actor_stats(factories):
expected = {
"libraries": 0,
"tracks": 0,
"albums": 0,
"uploads": 0,
"artists": 0,
"outbox_activities": 0,
"received_library_follows": 0,
"emitted_library_follows": 0,
"media_total_size": 0,
"media_downloaded_size": 0,
}
actor = factories["federation.Actor"]()
assert actor.get_stats() == expected