Missing changelog and getLicense endpoint for #581
This commit is contained in:
parent
77973ba6f9
commit
aaaa2479dc
|
@ -15,7 +15,7 @@ class SubsonicJSONRenderer(renderers.JSONRenderer):
|
|||
"status": "ok",
|
||||
"version": "1.16.0",
|
||||
"type": "funkwhale",
|
||||
"funkwhale-version": funkwhale_api.__version__,
|
||||
"funkwhaleVersion": funkwhale_api.__version__,
|
||||
}
|
||||
}
|
||||
final["subsonic-response"].update(data)
|
||||
|
|
|
@ -124,7 +124,7 @@ class SubsonicViewSet(viewsets.GenericViewSet):
|
|||
"status": "ok",
|
||||
"version": "1.16.0",
|
||||
"type": "funkwhale",
|
||||
"funkwhale-version": funkwhale_api.__version__,
|
||||
"funkwhaleVersion": funkwhale_api.__version__,
|
||||
"license": {
|
||||
"valid": "true",
|
||||
"email": "valid@valid.license",
|
||||
|
|
|
@ -13,7 +13,7 @@ def test_json_renderer():
|
|||
"status": "ok",
|
||||
"version": "1.16.0",
|
||||
"type": "funkwhale",
|
||||
"funkwhale-version": funkwhale_api.__version__,
|
||||
"funkwhaleVersion": funkwhale_api.__version__,
|
||||
"hello": "world",
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ def test_render_content_json(db, api_client):
|
|||
"status": "ok",
|
||||
"version": "1.16.0",
|
||||
"type": "funkwhale",
|
||||
"funkwhale-version": funkwhale_api.__version__,
|
||||
"funkwhaleVersion": funkwhale_api.__version__,
|
||||
}
|
||||
assert response.status_code == 200
|
||||
assert json.loads(response.content) == render_json(expected)
|
||||
|
@ -60,6 +60,8 @@ def test_get_license(f, db, logged_in_api_client, mocker):
|
|||
expected = {
|
||||
"status": "ok",
|
||||
"version": "1.16.0",
|
||||
"type": "funkwhale",
|
||||
"funkwhaleVersion": funkwhale_api.__version__,
|
||||
"license": {
|
||||
"valid": "true",
|
||||
"email": "valid@valid.license",
|
||||
|
|
Loading…
Reference in New Issue