From 93c371fe753bf71e40a96767951b8d31aac8cf63 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Tue, 4 Feb 2020 11:49:58 +0100 Subject: [PATCH] Fixed failing test due to ordered dicts in python 3.8 --- api/funkwhale_api/subsonic/renderers.py | 6 +++--- api/tests/subsonic/test_renderers.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/funkwhale_api/subsonic/renderers.py b/api/funkwhale_api/subsonic/renderers.py index ceab2c5ee..92c4508d4 100644 --- a/api/funkwhale_api/subsonic/renderers.py +++ b/api/funkwhale_api/subsonic/renderers.py @@ -7,10 +7,10 @@ import funkwhale_api def structure_payload(data): payload = { - "status": "ok", - "version": "1.16.0", - "type": "funkwhale", "funkwhaleVersion": funkwhale_api.__version__, + "status": "ok", + "type": "funkwhale", + "version": "1.16.0", } payload.update(data) if "detail" in payload: diff --git a/api/tests/subsonic/test_renderers.py b/api/tests/subsonic/test_renderers.py index 501ae48ce..ffa4aeac5 100644 --- a/api/tests/subsonic/test_renderers.py +++ b/api/tests/subsonic/test_renderers.py @@ -80,7 +80,7 @@ def test_xml_renderer_dict_to_xml(): def test_xml_renderer(): payload = {"hello": "world"} - expected = '\n' # noqa + expected = '\n' # noqa expected = expected.format(funkwhale_api.__version__).encode() renderer = renderers.SubsonicXMLRenderer()