Verified Commit dcd150a1 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

See #223: fixed failing test

parent c59f289e
......@@ -19,7 +19,8 @@ def test_track_file_view(factories, superuser_api_client):
url = reverse('api:v1:manage:library:track-files-list')
response = superuser_api_client.get(url, {'sort': '-creation_date'})
expected = serializers.ManageTrackFileSerializer(qs, many=True).data
expected = serializers.ManageTrackFileSerializer(
qs, many=True, context={'request': response.wsgi_request}).data
assert response.data['count'] == len(tfs)
assert response.data['results'] == expected
Supports Markdown
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