Commit 58333b59 authored by Eliot Berriot's avatar Eliot Berriot

Failing test

parent 508873df
......@@ -20,13 +20,18 @@ def test_user_update_permission(factories):
)
s = serializers.ManageUserSerializer(
user,
data={"is_active": False, "permissions": {"federation": False, "upload": True}},
data={
"is_active": False,
"permissions": {"federation": False, "upload": True},
"upload_quota": 12,
},
)
s.is_valid(raise_exception=True)
s.save()
user.refresh_from_db()
assert user.is_active is False
assert user.upload_quota == 12
assert user.permission_federation is False
assert user.permission_upload is True
assert user.permission_library is False
......
......@@ -145,7 +145,7 @@ def test_can_list_tracks_from_playlist(level, factories, logged_in_api_client):
url = reverse("api:v1:playlists-tracks", kwargs={"pk": plt.playlist.pk})
response = logged_in_api_client.get(url)
serialized_plt = serializers.PlaylistTrackSerializer(plt).data
serialized_plt["track"]["is_playable"] = False
assert response.data["count"] == 1
assert response.data["results"][0] == serialized_plt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment