From 85ea4651e4e12ac2811a749ea26dfc2a7136967b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 26 May 2023 11:20:19 +0200 Subject: [PATCH] minor cleanup Signed-off-by: Jens Langhammer --- .../oauth/api/{source_connection.py => source_connections.py} | 0 authentik/sources/oauth/api/{source.py => sources.py} | 0 authentik/sources/oauth/models.py | 4 ++-- authentik/sources/oauth/tests/test_views.py | 2 +- authentik/sources/oauth/urls.py | 4 ++-- 5 files changed, 5 insertions(+), 5 deletions(-) rename authentik/sources/oauth/api/{source_connection.py => source_connections.py} (100%) rename authentik/sources/oauth/api/{source.py => sources.py} (100%) diff --git a/authentik/sources/oauth/api/source_connection.py b/authentik/sources/oauth/api/source_connections.py similarity index 100% rename from authentik/sources/oauth/api/source_connection.py rename to authentik/sources/oauth/api/source_connections.py diff --git a/authentik/sources/oauth/api/source.py b/authentik/sources/oauth/api/sources.py similarity index 100% rename from authentik/sources/oauth/api/source.py rename to authentik/sources/oauth/api/sources.py diff --git a/authentik/sources/oauth/models.py b/authentik/sources/oauth/models.py index 7d8dd2fb7..75999639e 100644 --- a/authentik/sources/oauth/models.py +++ b/authentik/sources/oauth/models.py @@ -68,7 +68,7 @@ class OAuthSource(Source): # we're using Type[] instead of type[] here since type[] interferes with the property above @property def serializer(self) -> Type[Serializer]: - from authentik.sources.oauth.api.source import OAuthSourceSerializer + from authentik.sources.oauth.api.sources import OAuthSourceSerializer return OAuthSourceSerializer @@ -234,7 +234,7 @@ class UserOAuthSourceConnection(UserSourceConnection): @property def serializer(self) -> Serializer: - from authentik.sources.oauth.api.source_connection import ( + from authentik.sources.oauth.api.source_connections import ( UserOAuthSourceConnectionSerializer, ) diff --git a/authentik/sources/oauth/tests/test_views.py b/authentik/sources/oauth/tests/test_views.py index 2e1919c17..f0a159655 100644 --- a/authentik/sources/oauth/tests/test_views.py +++ b/authentik/sources/oauth/tests/test_views.py @@ -3,7 +3,7 @@ from django.test import TestCase from django.urls import reverse from requests_mock import Mocker -from authentik.sources.oauth.api.source import OAuthSourceSerializer +from authentik.sources.oauth.api.sources import OAuthSourceSerializer from authentik.sources.oauth.models import OAuthSource diff --git a/authentik/sources/oauth/urls.py b/authentik/sources/oauth/urls.py index 5914f7d01..5c3e0dde2 100644 --- a/authentik/sources/oauth/urls.py +++ b/authentik/sources/oauth/urls.py @@ -2,8 +2,8 @@ from django.urls import path -from authentik.sources.oauth.api.source import OAuthSourceViewSet -from authentik.sources.oauth.api.source_connection import UserOAuthSourceConnectionViewSet +from authentik.sources.oauth.api.sources import OAuthSourceViewSet +from authentik.sources.oauth.api.source_connections import UserOAuthSourceConnectionViewSet from authentik.sources.oauth.types.registry import RequestKind from authentik.sources.oauth.views.dispatcher import DispatcherView