See #75: initial subsonic implementation that works with http://p.subfireplayer.net

This commit is contained in:
Eliot Berriot 2018-05-08 16:32:07 +02:00
parent 9682299480
commit bbd273404a
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
15 changed files with 774 additions and 48 deletions

View file

@ -130,6 +130,7 @@ def logged_in_api_client(db, factories, api_client):
"""
user = factories['users.User']()
assert api_client.login(username=user.username, password='test')
api_client.force_authenticate(user=user)
setattr(api_client, 'user', user)
yield api_client
delattr(api_client, 'user')