Skip to content
Snippets Groups Projects
Verified Commit aaaa2479 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Missing changelog and getLicense endpoint for #581

parent 77973ba6
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ class SubsonicJSONRenderer(renderers.JSONRenderer): ...@@ -15,7 +15,7 @@ class SubsonicJSONRenderer(renderers.JSONRenderer):
"status": "ok", "status": "ok",
"version": "1.16.0", "version": "1.16.0",
"type": "funkwhale", "type": "funkwhale",
"funkwhale-version": funkwhale_api.__version__, "funkwhaleVersion": funkwhale_api.__version__,
} }
} }
final["subsonic-response"].update(data) final["subsonic-response"].update(data)
......
...@@ -124,7 +124,7 @@ class SubsonicViewSet(viewsets.GenericViewSet): ...@@ -124,7 +124,7 @@ class SubsonicViewSet(viewsets.GenericViewSet):
"status": "ok", "status": "ok",
"version": "1.16.0", "version": "1.16.0",
"type": "funkwhale", "type": "funkwhale",
"funkwhale-version": funkwhale_api.__version__, "funkwhaleVersion": funkwhale_api.__version__,
"license": { "license": {
"valid": "true", "valid": "true",
"email": "valid@valid.license", "email": "valid@valid.license",
......
...@@ -13,7 +13,7 @@ def test_json_renderer(): ...@@ -13,7 +13,7 @@ def test_json_renderer():
"status": "ok", "status": "ok",
"version": "1.16.0", "version": "1.16.0",
"type": "funkwhale", "type": "funkwhale",
"funkwhale-version": funkwhale_api.__version__, "funkwhaleVersion": funkwhale_api.__version__,
"hello": "world", "hello": "world",
} }
} }
......
...@@ -24,7 +24,7 @@ def test_render_content_json(db, api_client): ...@@ -24,7 +24,7 @@ def test_render_content_json(db, api_client):
"status": "ok", "status": "ok",
"version": "1.16.0", "version": "1.16.0",
"type": "funkwhale", "type": "funkwhale",
"funkwhale-version": funkwhale_api.__version__, "funkwhaleVersion": funkwhale_api.__version__,
} }
assert response.status_code == 200 assert response.status_code == 200
assert json.loads(response.content) == render_json(expected) assert json.loads(response.content) == render_json(expected)
...@@ -60,6 +60,8 @@ def test_get_license(f, db, logged_in_api_client, mocker): ...@@ -60,6 +60,8 @@ def test_get_license(f, db, logged_in_api_client, mocker):
expected = { expected = {
"status": "ok", "status": "ok",
"version": "1.16.0", "version": "1.16.0",
"type": "funkwhale",
"funkwhaleVersion": funkwhale_api.__version__,
"license": { "license": {
"valid": "true", "valid": "true",
"email": "valid@valid.license", "email": "valid@valid.license",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment