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,5 +1,4 @@
|
|||
import pytest
|
||||
|
||||
from django.core.management import call_command
|
||||
|
||||
from funkwhale_api.federation import models as federation_models
|
||||
|
|
|
|||
|
|
@ -1,15 +1,16 @@
|
|||
import pytest
|
||||
|
||||
from rest_framework import viewsets
|
||||
|
||||
from funkwhale_api.common import decorators
|
||||
from funkwhale_api.common import models
|
||||
from funkwhale_api.common import mutations
|
||||
from funkwhale_api.common import serializers
|
||||
from funkwhale_api.common import signals
|
||||
from funkwhale_api.common import tasks
|
||||
from funkwhale_api.music import models as music_models
|
||||
from funkwhale_api.common import (
|
||||
decorators,
|
||||
models,
|
||||
mutations,
|
||||
serializers,
|
||||
signals,
|
||||
tasks,
|
||||
)
|
||||
from funkwhale_api.music import licenses
|
||||
from funkwhale_api.music import models as music_models
|
||||
|
||||
|
||||
class V(viewsets.ModelViewSet):
|
||||
|
|
|
|||
|
|
@ -1,15 +1,13 @@
|
|||
import html
|
||||
import time
|
||||
|
||||
import pytest
|
||||
from django.http import HttpResponse
|
||||
from django.urls import reverse
|
||||
|
||||
from funkwhale_api.common import middleware, throttling, utils
|
||||
from funkwhale_api.federation import utils as federation_utils
|
||||
|
||||
from funkwhale_api.common import middleware
|
||||
from funkwhale_api.common import throttling
|
||||
from funkwhale_api.common import utils
|
||||
|
||||
|
||||
def test_spa_fallback_middleware_no_404(mocker):
|
||||
get_response = mocker.Mock()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import pytest
|
||||
|
||||
from django.urls import reverse
|
||||
|
||||
from funkwhale_api.federation import utils as federation_utils
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
import pytest
|
||||
from rest_framework import serializers
|
||||
|
||||
from funkwhale_api.common import mutations
|
||||
|
||||
from rest_framework import serializers
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mutations_registry():
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
import pytest
|
||||
|
||||
from dynamic_preferences import types
|
||||
from dynamic_preferences.registries import global_preferences_registry
|
||||
|
||||
from rest_framework import serializers
|
||||
|
||||
from funkwhale_api.common import preferences as common_preferences
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import pytest
|
||||
|
||||
from django.db.models import Q
|
||||
from django import forms
|
||||
from django.db.models import Q
|
||||
|
||||
from funkwhale_api.common import search
|
||||
from funkwhale_api.music import models as music_models
|
||||
|
|
|
|||
|
|
@ -1,15 +1,13 @@
|
|||
import os
|
||||
import PIL
|
||||
|
||||
import django_filters
|
||||
import PIL
|
||||
from django.core.files.uploadedfile import SimpleUploadedFile
|
||||
from django.urls import reverse
|
||||
|
||||
import django_filters
|
||||
|
||||
from funkwhale_api.common import serializers
|
||||
from funkwhale_api.common import utils
|
||||
from funkwhale_api.users import models
|
||||
from funkwhale_api.common import serializers, utils
|
||||
from funkwhale_api.federation import utils as federation_utils
|
||||
from funkwhale_api.users import models
|
||||
|
||||
|
||||
class TestActionFilterSet(django_filters.FilterSet):
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
import pytest
|
||||
import datetime
|
||||
|
||||
from funkwhale_api.common import models
|
||||
from funkwhale_api.common import serializers
|
||||
from funkwhale_api.common import signals
|
||||
from funkwhale_api.common import tasks
|
||||
import pytest
|
||||
|
||||
from funkwhale_api.common import models, serializers, signals, tasks
|
||||
|
||||
|
||||
def test_apply_migration(factories, mocker):
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import time
|
||||
|
||||
import pytest
|
||||
|
||||
from funkwhale_api.common import throttling
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import io
|
||||
|
||||
import pytest
|
||||
|
||||
from funkwhale_api.common import utils
|
||||
|
|
|
|||
|
|
@ -1,13 +1,9 @@
|
|||
import io
|
||||
import pytest
|
||||
|
||||
import pytest
|
||||
from django.urls import reverse
|
||||
|
||||
from funkwhale_api.common import serializers
|
||||
from funkwhale_api.common import signals
|
||||
from funkwhale_api.common import tasks
|
||||
from funkwhale_api.common import throttling
|
||||
from funkwhale_api.common import utils
|
||||
from funkwhale_api.common import serializers, signals, tasks, throttling, utils
|
||||
|
||||
|
||||
def test_can_detail_mutation(logged_in_api_client, factories):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue