Fixed crashing nodeinfo fetching when remote answers with invalid JSON

This commit is contained in:
Eliot Berriot 2019-06-24 16:21:06 +02:00
commit d39edae061
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 3 additions and 3 deletions

View file

@ -63,7 +63,7 @@ def test_domain_detail(factories, superuser_api_client):
def test_domain_create(superuser_api_client, mocker):
update_domain_nodeinfo = mocker.patch(
"funkwhale_api.federation.tasks.update_domain_nodeinfo.delay"
"funkwhale_api.federation.tasks.update_domain_nodeinfo"
)
url = reverse("api:v1:manage:federation:domains-list")
response = superuser_api_client.post(url, {"name": "test.federation"})