Verified Commit aaaa2479 authored by Agate's avatar Agate 💬

Missing changelog and getLicense endpoint for #581

parent 77973ba6
Pipeline #2288 passed with stages
in 5 minutes and 12 seconds
...@@ -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",
......
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