From 7e442db524ed9e899c01d6b038c05d5d46fc4c82 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Thu, 21 Jun 2018 19:51:12 +0200 Subject: [PATCH] Black/Flake8 --- api/funkwhale_api/common/serializers.py | 1 - api/funkwhale_api/federation/serializers.py | 2 +- api/tests/users/test_views.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) 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",