1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 17:06:17 +00:00

Py3: fixed remaining errors (hidden due to skipped tests)

Ref #75
This commit is contained in:
spl0k 2018-01-16 22:19:24 +01:00
parent c36d1813ee
commit 420003dfc1
2 changed files with 3 additions and 2 deletions

View File

@ -73,7 +73,7 @@ def user_profile(uid, user):
@me_or_uuid @me_or_uuid
def update_clients(uid, user): def update_clients(uid, user):
clients_opts = dict() clients_opts = dict()
for key, value in request.form.iteritems(): for key, value in request.form.items():
if '_' not in key: if '_' not in key:
continue continue
parts = key.split('_') parts = key.split('_')

View File

@ -24,6 +24,7 @@ class TranscodingTestCase(ApiTestBase):
self.skipTest('Logging/atexit error') self.skipTest('Logging/atexit error')
super(TranscodingTestCase, self).setUp() super(TranscodingTestCase, self).setUp()
self._patch_client()
FolderManager.add('Folder', 'tests/assets/folder') FolderManager.add('Folder', 'tests/assets/folder')
scanner = Scanner() scanner = Scanner()
@ -54,7 +55,7 @@ class TranscodingTestCase(ApiTestBase):
rv = self._stream(format = 'cat') rv = self._stream(format = 'cat')
self.assertEqual(rv.data, 'Pushing out some mp3 data...') 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')) self.assertTrue(rv.data.startswith('dbb16c0847e5d8c3b1867604828cb50b'))
if __name__ == '__main__': if __name__ == '__main__':