diff --git a/api/funkwhale_api/common/serializers.py b/api/funkwhale_api/common/serializers.py index b3e2d3101..b995afcaa 100644 --- a/api/funkwhale_api/common/serializers.py +++ b/api/funkwhale_api/common/serializers.py @@ -1,4 +1,3 @@ -import collections from rest_framework import serializers diff --git a/api/funkwhale_api/federation/serializers.py b/api/funkwhale_api/federation/serializers.py index 451c199ce..44de5d312 100644 --- a/api/funkwhale_api/federation/serializers.py +++ b/api/funkwhale_api/federation/serializers.py @@ -769,7 +769,7 @@ class CollectionSerializer(serializers.Serializer): class LibraryTrackActionSerializer(common_serializers.ActionSerializer): - actions = [common_serializers.Action('import', allow_all=True)] + actions = [common_serializers.Action("import", allow_all=True)] filterset_class = filters.LibraryTrackFilter @transaction.atomic diff --git a/api/tests/users/test_views.py b/api/tests/users/test_views.py index 723360193..fca66d302 100644 --- a/api/tests/users/test_views.py +++ b/api/tests/users/test_views.py @@ -70,7 +70,7 @@ def test_can_signup_with_invitation(preferences, factories, api_client): def test_can_signup_with_invitation_invalid(preferences, factories, api_client): url = reverse("rest_register") - invitation = factories["users.Invitation"](code="hello") + factories["users.Invitation"](code="hello") data = { "username": "test1", "email": "test1@test.com",