mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 06:29:23 +02:00
See #170: channels ui (listeners)
This commit is contained in:
parent
b74517ff33
commit
95497e76ac
79 changed files with 1768 additions and 232 deletions
|
@ -197,3 +197,15 @@ def test_user_can_list_domains(factories, api_client, preferences):
|
|||
"results": [api_serializers.DomainSerializer(allowed).data],
|
||||
}
|
||||
assert response.data == expected
|
||||
|
||||
|
||||
def test_can_retrieve_actor(factories, api_client, preferences):
|
||||
preferences["common__api_authentication_required"] = False
|
||||
actor = factories["federation.Actor"]()
|
||||
url = reverse(
|
||||
"api:v1:federation:actors-detail", kwargs={"full_username": actor.full_username}
|
||||
)
|
||||
response = api_client.get(url)
|
||||
|
||||
expected = api_serializers.FullActorSerializer(actor).data
|
||||
assert response.data == expected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue