From 420003dfc1fbee192450dbeb11e70f73b514bbd4 Mon Sep 17 00:00:00 2001 From: spl0k Date: Tue, 16 Jan 2018 22:19:24 +0100 Subject: [PATCH] Py3: fixed remaining errors (hidden due to skipped tests) Ref #75 --- supysonic/frontend/user.py | 2 +- tests/api/test_transcoding.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/supysonic/frontend/user.py b/supysonic/frontend/user.py index 20d02fd..5c68908 100644 --- a/supysonic/frontend/user.py +++ b/supysonic/frontend/user.py @@ -73,7 +73,7 @@ def user_profile(uid, user): @me_or_uuid def update_clients(uid, user): clients_opts = dict() - for key, value in request.form.iteritems(): + for key, value in request.form.items(): if '_' not in key: continue parts = key.split('_') diff --git a/tests/api/test_transcoding.py b/tests/api/test_transcoding.py index 049c44f..89df996 100644 --- a/tests/api/test_transcoding.py +++ b/tests/api/test_transcoding.py @@ -24,6 +24,7 @@ class TranscodingTestCase(ApiTestBase): self.skipTest('Logging/atexit error') super(TranscodingTestCase, self).setUp() + self._patch_client() FolderManager.add('Folder', 'tests/assets/folder') scanner = Scanner() @@ -54,7 +55,7 @@ class TranscodingTestCase(ApiTestBase): rv = self._stream(format = 'cat') self.assertEqual(rv.data, 'Pushing out some mp3 data...') - rv = self._stream(format = 'md5') + rv = self._stream(format = 'md5') self.assertTrue(rv.data.startswith('dbb16c0847e5d8c3b1867604828cb50b')) if __name__ == '__main__':