mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 02:49:15 +02:00
See #192: use proper content type for nodeinfo endpoint
This commit is contained in:
parent
a679f48fcf
commit
095b70db4b
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue