Commit aaaa2479 authored by Eliot Berriot's avatar Eliot Berriot 💬

Missing changelog and getLicense endpoint for #581

parent 77973ba6
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment