chore: format files using isort (pre-commit)
This commit is contained in:
parent
20ed5f0d52
commit
cff619679b
226 changed files with 483 additions and 735 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import pytest
|
||||
import uuid
|
||||
|
||||
import pytest
|
||||
from django.db.models import Q
|
||||
from django.urls import reverse
|
||||
|
||||
from funkwhale_api.federation import (
|
||||
activity,
|
||||
models,
|
||||
api_serializers,
|
||||
models,
|
||||
serializers,
|
||||
tasks,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
from funkwhale_api.federation import fields
|
||||
from funkwhale_api.federation import filters
|
||||
from funkwhale_api.federation import models
|
||||
from funkwhale_api.federation import fields, filters, models
|
||||
|
||||
|
||||
def test_inbox_item_filter_before(factories):
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
import pytest
|
||||
|
||||
from funkwhale_api.common import serializers as common_serializers
|
||||
from funkwhale_api.federation import api_serializers
|
||||
from funkwhale_api.federation import serializers
|
||||
from funkwhale_api.federation import api_serializers, serializers
|
||||
from funkwhale_api.users import serializers as users_serializers
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,9 @@
|
|||
import datetime
|
||||
|
||||
import pytest
|
||||
|
||||
from django.urls import reverse
|
||||
|
||||
from funkwhale_api.federation import api_serializers
|
||||
from funkwhale_api.federation import serializers
|
||||
from funkwhale_api.federation import tasks
|
||||
from funkwhale_api.federation import views
|
||||
from funkwhale_api.federation import api_serializers, serializers, tasks, views
|
||||
|
||||
|
||||
def test_user_can_list_their_library_follows(factories, logged_in_api_client):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import pytest
|
||||
|
||||
from funkwhale_api.federation import authentication, exceptions, keys, jsonld
|
||||
from funkwhale_api.federation import authentication, exceptions, jsonld, keys
|
||||
|
||||
|
||||
def test_authenticate(factories, mocker, api_request):
|
||||
|
|
|
|||
|
|
@ -1,12 +1,8 @@
|
|||
from rest_framework import viewsets
|
||||
|
||||
from funkwhale_api.federation import api_serializers, decorators, models, tasks
|
||||
from funkwhale_api.music import models as music_models
|
||||
|
||||
from funkwhale_api.federation import api_serializers
|
||||
from funkwhale_api.federation import decorators
|
||||
from funkwhale_api.federation import models
|
||||
from funkwhale_api.federation import tasks
|
||||
|
||||
|
||||
class V(viewsets.ModelViewSet):
|
||||
queryset = music_models.Track.objects.all()
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
import pytest
|
||||
|
||||
from rest_framework import serializers
|
||||
|
||||
from funkwhale_api.federation import contexts
|
||||
from funkwhale_api.federation import jsonld
|
||||
from funkwhale_api.federation import contexts, jsonld
|
||||
|
||||
|
||||
def test_expand_no_external_request():
|
||||
|
|
|
|||
|
|
@ -1,19 +1,21 @@
|
|||
import io
|
||||
import pytest
|
||||
import uuid
|
||||
|
||||
import pytest
|
||||
from django.core.paginator import Paginator
|
||||
from django.urls import reverse
|
||||
from django.utils import timezone
|
||||
|
||||
from funkwhale_api.common import utils as common_utils
|
||||
from funkwhale_api.federation import actors
|
||||
from funkwhale_api.federation import contexts
|
||||
from funkwhale_api.federation import keys
|
||||
from funkwhale_api.federation import jsonld
|
||||
from funkwhale_api.federation import models
|
||||
from funkwhale_api.federation import serializers
|
||||
from funkwhale_api.federation import utils
|
||||
from funkwhale_api.federation import (
|
||||
actors,
|
||||
contexts,
|
||||
jsonld,
|
||||
keys,
|
||||
models,
|
||||
serializers,
|
||||
utils,
|
||||
)
|
||||
from funkwhale_api.moderation import serializers as moderation_serializers
|
||||
from funkwhale_api.music import licenses
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
import cryptography.exceptions
|
||||
import datetime
|
||||
from django.utils.http import http_date
|
||||
from django import forms
|
||||
|
||||
import cryptography.exceptions
|
||||
import pytest
|
||||
from django import forms
|
||||
from django.utils.http import http_date
|
||||
|
||||
from funkwhale_api.federation import keys, signing
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,11 @@
|
|||
import datetime
|
||||
import os
|
||||
import pathlib
|
||||
import pytest
|
||||
|
||||
import pytest
|
||||
from django.utils import timezone
|
||||
|
||||
from funkwhale_api.federation import jsonld
|
||||
from funkwhale_api.federation import models
|
||||
from funkwhale_api.federation import serializers
|
||||
from funkwhale_api.federation import tasks
|
||||
from funkwhale_api.federation import utils
|
||||
from funkwhale_api.federation import jsonld, models, serializers, tasks, utils
|
||||
|
||||
|
||||
def test_clean_federation_music_cache_if_no_listen(preferences, factories):
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import pytest
|
||||
|
||||
from funkwhale_api.federation import routes
|
||||
from funkwhale_api.federation import serializers
|
||||
from funkwhale_api.federation import routes, serializers
|
||||
|
||||
|
||||
def test_pleroma_actor_from_ap_with_tags(factories):
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
from rest_framework import serializers
|
||||
import pytest
|
||||
|
||||
from django.core.exceptions import ObjectDoesNotExist
|
||||
from rest_framework import serializers
|
||||
|
||||
from funkwhale_api.federation import exceptions, utils
|
||||
|
||||
|
|
|
|||
|
|
@ -3,13 +3,9 @@ from django.core.paginator import Paginator
|
|||
from django.urls import reverse
|
||||
|
||||
from funkwhale_api.common import utils
|
||||
|
||||
from funkwhale_api.federation import (
|
||||
actors,
|
||||
serializers,
|
||||
webfinger,
|
||||
utils as federation_utils,
|
||||
)
|
||||
from funkwhale_api.federation import actors, serializers
|
||||
from funkwhale_api.federation import utils as federation_utils
|
||||
from funkwhale_api.federation import webfinger
|
||||
|
||||
|
||||
def test_authenticate_allows_anonymous_actor_fetch_when_allow_list_enabled(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue