diff --git a/codeforlife/tests/model_serializer.py b/codeforlife/tests/model_serializer.py index 99a0a8c..74e8b00 100644 --- a/codeforlife/tests/model_serializer.py +++ b/codeforlife/tests/model_serializer.py @@ -13,11 +13,11 @@ from django.forms.models import model_to_dict from rest_framework.serializers import BaseSerializer, ValidationError -from .api_request_factory import APIRequestFactory -from .test import TestCase from ..serializers import ModelListSerializer, ModelSerializer from ..types import DataDict from ..user.models import AnyUser as RequestUser +from .api_request_factory import APIRequestFactory +from .test import TestCase AnyModel = t.TypeVar("AnyModel", bound=Model) diff --git a/codeforlife/tests/model_view_set.py b/codeforlife/tests/model_view_set.py index b4a6c32..e4f8e71 100644 --- a/codeforlife/tests/model_view_set.py +++ b/codeforlife/tests/model_view_set.py @@ -16,12 +16,12 @@ from rest_framework import status from rest_framework.response import Response -from .api import APIClient, APITestCase from ..permissions import Permission from ..serializers import BaseSerializer from ..types import DataDict, JsonDict, KwArgs from ..user.models import AnyUser as RequestUser from ..views import ModelViewSet +from .api import APIClient, APITestCase AnyModel = t.TypeVar("AnyModel", bound=Model)