update test

This commit is contained in:
vincent 2021-01-11 18:58:49 +01:00
parent 375c158fc7
commit 811089af72

View file

@ -39,9 +39,21 @@ class SubsonicPluginTest(_common.TestCase, TestHelper):
config["subsonic"]["user"] = "admin"
config["subsonic"]["pass"] = "admin"
config["subsonic"]["url"] = "http://localhost:4040"
responses.add(
responses.GET,
'http://localhost:4040/rest/ping.view',
status=200,
body=self.PING_BODY
)
self.subsonicupdate = subsonicupdate.SubsonicUpdate()
PING_BODY = '''
{
"subsonic-response": {
"status": "failled",
"version": "1.15.0"
}
}
'''
SUCCESS_BODY = '''
{
"subsonic-response": {