diff --git a/src/objects/tests/admin/test_token_permissions.py b/src/objects/tests/admin/test_token_permissions.py index 2a743719..9e414941 100644 --- a/src/objects/tests/admin/test_token_permissions.py +++ b/src/objects/tests/admin/test_token_permissions.py @@ -6,12 +6,7 @@ from requests.exceptions import ConnectionError from objects.accounts.tests.factories import UserFactory -from objects.token.constants import PermissionModes -from objects.token.tests.factories import ( - ObjectTypeFactory, - PermissionFactory, - TokenAuthFactory, -) +from objects.token.tests.factories import ObjectTypeFactory, TokenAuthFactory from ..utils import mock_objecttype, mock_objecttype_version, mock_service_oas_get diff --git a/src/objects/token/admin.py b/src/objects/token/admin.py index 3160567d..cdda8264 100644 --- a/src/objects/token/admin.py +++ b/src/objects/token/admin.py @@ -2,9 +2,6 @@ from django.contrib.admin.utils import unquote from django.utils.translation import gettext_lazy as _ -import requests -from zgw_consumers.client import build_client - from objects.api.serializers import ObjectSerializer from objects.core.models import ObjectType from objects.core.utils import can_connect_to_objecttypes