diff --git a/api/funkwhale_api/common/management/commands/testdata.py b/api/funkwhale_api/common/management/commands/testdata.py index fa7ae631b..f65ef1985 100644 --- a/api/funkwhale_api/common/management/commands/testdata.py +++ b/api/funkwhale_api/common/management/commands/testdata.py @@ -10,7 +10,7 @@ class Command(BaseCommand): self.help = "Helper to generate randomized testdata" self.type_choices = {"notifications": self.handle_notifications} - self.missing_args_message = f"Please specify one of the following sub-commands: { *self.type_choices.keys(), }" + self.missing_args_message = f"Please specify one of the following sub-commands: {*self.type_choices.keys(), }" def add_arguments(self, parser): subparsers = parser.add_subparsers(dest="subcommand") diff --git a/api/funkwhale_api/common/preferences.py b/api/funkwhale_api/common/preferences.py index 930bd9e27..d69a45046 100644 --- a/api/funkwhale_api/common/preferences.py +++ b/api/funkwhale_api/common/preferences.py @@ -93,7 +93,6 @@ class SerializedPreference(types.BasePreferenceType): serializer """ - serializer = JSONSerializer data_serializer_class = None field_class = JSONField widget = forms.Textarea diff --git a/api/funkwhale_api/music/views.py b/api/funkwhale_api/music/views.py index 20942a952..282ceca24 100644 --- a/api/funkwhale_api/music/views.py +++ b/api/funkwhale_api/music/views.py @@ -297,8 +297,6 @@ class LibraryViewSet( ) instance.delete() - follows = action - @extend_schema( responses=federation_api_serializers.LibraryFollowSerializer(many=True) ) diff --git a/api/tests/music/test_metadata.py b/api/tests/music/test_metadata.py index fbf448d07..49a7d799f 100644 --- a/api/tests/music/test_metadata.py +++ b/api/tests/music/test_metadata.py @@ -198,8 +198,8 @@ def test_can_get_pictures(name): cover_data = data.get_picture("cover_front", "other") assert cover_data["mimetype"].startswith("image/") assert len(cover_data["content"]) > 0 - assert type(cover_data["content"]) == bytes - assert type(cover_data["description"]) == str + assert type(cover_data["content"]) is bytes + assert type(cover_data["description"]) is str @pytest.mark.parametrize(