mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 11:00:39 +02:00
See #75: initial subsonic implementation that works with http://p.subfireplayer.net
This commit is contained in:
parent
9682299480
commit
bbd273404a
15 changed files with 774 additions and 48 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue