Skip to content

Commit

Permalink
🎨 [#315] Isort fixing 7 files
Browse files Browse the repository at this point in the history
  • Loading branch information
ErhanCitil committed May 31, 2023
1 parent 19f979f commit 8a86f09
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 33 deletions.
6 changes: 1 addition & 5 deletions src/objects/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
from objects.utils.serializers import DynamicFieldsMixin

from .fields import ObjectSlugRelatedField, ObjectTypeField, ObjectUrlField
from .validators import (
GeometryValidator,
IsImmutableValidator,
JsonSchemaValidator,
)
from .validators import GeometryValidator, IsImmutableValidator, JsonSchemaValidator


class ObjectRecordSerializer(serializers.ModelSerializer):
Expand Down
6 changes: 1 addition & 5 deletions src/objects/tests/admin/test_token_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
from objects.accounts.tests.factories import UserFactory
from objects.token.tests.factories import ObjectTypeFactory, TokenAuthFactory

from ..utils import (
mock_objecttype,
mock_objecttype_version,
mock_service_oas_get,
)
from ..utils import mock_objecttype, mock_objecttype_version, mock_service_oas_get

OBJECT_TYPES_API = "https://example.com/objecttypes/v1/"

Expand Down
6 changes: 1 addition & 5 deletions src/objects/tests/v1/test_object_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
from objects.utils.test import TokenAuthMixin

from ..constants import GEO_WRITE_KWARGS
from ..utils import (
mock_objecttype,
mock_objecttype_version,
mock_service_oas_get,
)
from ..utils import mock_objecttype, mock_objecttype_version, mock_service_oas_get
from .utils import reverse

OBJECT_TYPES_API = "https://example.com/objecttypes/v1/"
Expand Down
6 changes: 1 addition & 5 deletions src/objects/tests/v1/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
from objects.utils.test import TokenAuthMixin

from ..constants import GEO_WRITE_KWARGS
from ..utils import (
mock_objecttype,
mock_objecttype_version,
mock_service_oas_get,
)
from ..utils import mock_objecttype, mock_objecttype_version, mock_service_oas_get
from .utils import reverse

OBJECT_TYPES_API = "https://example.com/objecttypes/v1/"
Expand Down
6 changes: 1 addition & 5 deletions src/objects/tests/v2/test_object_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
from objects.utils.test import TokenAuthMixin

from ..constants import GEO_WRITE_KWARGS
from ..utils import (
mock_objecttype,
mock_objecttype_version,
mock_service_oas_get,
)
from ..utils import mock_objecttype, mock_objecttype_version, mock_service_oas_get
from .utils import reverse

OBJECT_TYPES_API = "https://example.com/objecttypes/v1/"
Expand Down
6 changes: 1 addition & 5 deletions src/objects/tests/v2/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
from objects.utils.test import TokenAuthMixin

from ..constants import GEO_WRITE_KWARGS
from ..utils import (
mock_objecttype,
mock_objecttype_version,
mock_service_oas_get,
)
from ..utils import mock_objecttype, mock_objecttype_version, mock_service_oas_get
from .utils import reverse

OBJECT_TYPES_API = "https://example.com/objecttypes/v1/"
Expand Down
4 changes: 1 addition & 3 deletions src/objects/token/authentication.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from django.utils.translation import gettext_lazy as _

from rest_framework import exceptions
from rest_framework.authentication import (
TokenAuthentication as _TokenAuthentication,
)
from rest_framework.authentication import TokenAuthentication as _TokenAuthentication


class TokenAuthentication(_TokenAuthentication):
Expand Down

0 comments on commit 8a86f09

Please sign in to comment.