See #192: use proper content type for nodeinfo endpoint

This commit is contained in:
Eliot Berriot 2018-05-07 23:29:07 +02:00
parent a679f48fcf
commit 095b70db4b
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
2 changed files with 9 additions and 2 deletions

View file

@ -9,8 +9,9 @@ def test_nodeinfo_endpoint(db, api_client, mocker):
'funkwhale_api.instance.nodeinfo.get', return_value=payload)
url = reverse('api:v1:instance:nodeinfo-2.0')
response = api_client.get(url)
ct = 'application/json; profile=http://nodeinfo.diaspora.software/ns/schema/2.0#; charset=utf-8' # noqa
assert response.status_code == 200
assert response['Content-Type'] == ct
assert response.data == payload