mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 11:09:16 +02:00
System actor
This commit is contained in:
parent
8963218bb0
commit
253f026dc0
18 changed files with 209 additions and 28 deletions
|
@ -1,5 +1,6 @@
|
|||
import funkwhale_api
|
||||
from funkwhale_api.instance import nodeinfo
|
||||
from funkwhale_api.federation import actors
|
||||
|
||||
|
||||
def test_nodeinfo_dump(preferences, mocker):
|
||||
|
@ -23,6 +24,7 @@ def test_nodeinfo_dump(preferences, mocker):
|
|||
"openRegistrations": preferences["users__registration_enabled"],
|
||||
"usage": {"users": {"total": 1, "activeHalfyear": 12, "activeMonth": 13}},
|
||||
"metadata": {
|
||||
"actorId": actors.get_service_actor().fid,
|
||||
"private": preferences["instance__nodeinfo_private"],
|
||||
"shortDescription": preferences["instance__short_description"],
|
||||
"longDescription": preferences["instance__long_description"],
|
||||
|
@ -60,6 +62,7 @@ def test_nodeinfo_dump_stats_disabled(preferences, mocker):
|
|||
"openRegistrations": preferences["users__registration_enabled"],
|
||||
"usage": {"users": {"total": 0, "activeHalfyear": 0, "activeMonth": 0}},
|
||||
"metadata": {
|
||||
"actorId": actors.get_service_actor().fid,
|
||||
"private": preferences["instance__nodeinfo_private"],
|
||||
"shortDescription": preferences["instance__short_description"],
|
||||
"longDescription": preferences["instance__long_description"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue