Fixed broken urls in manifest.json

This commit is contained in:
Eliot Berriot 2020-01-09 16:12:17 +01:00
parent ef6219e8c4
commit 9ab3afa47f
No known key found for this signature in database
GPG key ID: 6B501DFD73514E14
3 changed files with 9 additions and 3 deletions

View file

@ -2,6 +2,8 @@ import json
from django.urls import reverse
from funkwhale_api.federation import utils as federation_utils
def test_nodeinfo_endpoint(db, api_client, mocker):
payload = {"test": "test"}
@ -54,6 +56,7 @@ def test_manifest_endpoint(api_client, mocker, preferences, tmp_path, settings):
"name": "Test pod",
"short_name": "Test pod",
"description": "Test description",
"start_url": federation_utils.full_url("/"),
}
manifest.write_bytes(json.dumps(base_payload).encode())