mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 17:28:12 +02:00
Ensures federation urls can answer to application/ld+json, application/activity+json and application/json requests
This commit is contained in:
parent
c9e7eea65b
commit
12c9db3960
19 changed files with 1294 additions and 1001 deletions
|
@ -1,6 +1,6 @@
|
|||
import pytest
|
||||
|
||||
from funkwhale_api.federation import routes, serializers
|
||||
from funkwhale_api.federation import jsonld, routes, serializers
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
@ -190,6 +190,7 @@ def test_inbox_create_audio(factories, mocker):
|
|||
activity = factories["federation.Activity"]()
|
||||
upload = factories["music.Upload"](bitrate=42, duration=55)
|
||||
payload = {
|
||||
"@context": jsonld.get_default_context(),
|
||||
"type": "Create",
|
||||
"actor": upload.library.actor.fid,
|
||||
"object": serializers.UploadSerializer(upload).data,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue