Skip to content

Commit 5556e20

Browse files
refactor: reorder imports for consistency in middleware and test files
1 parent e25d0c5 commit 5556e20

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎examples/example-fastmcp-mcp/src/auth0/middleware.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
from collections.abc import Callable
33
from typing import Any
44

5-
from auth0_api_python import ApiClient, ApiClientOptions
6-
from auth0_api_python.errors import VerifyAccessTokenError
75
from starlette.middleware.base import BaseHTTPMiddleware
86
from starlette.requests import Request
97
from starlette.responses import Response
108
from starlette.types import ASGIApp
119

10+
from auth0_api_python import ApiClient, ApiClientOptions
11+
from auth0_api_python.errors import VerifyAccessTokenError
12+
1213
from .errors import AuthenticationRequired, MalformedAuthorizationRequest
1314

1415
logger = logging.getLogger(__name__)

‎tests/test_api_client.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
import httpx
77
import pytest
8+
from pytest_httpx import HTTPXMock
9+
810
from auth0_api_python.api_client import ApiClient
911
from auth0_api_python.config import ApiClientOptions
1012
from auth0_api_python.errors import (
@@ -24,7 +26,6 @@
2426
generate_token_with_cnf,
2527
sha256_base64url,
2628
)
27-
from pytest_httpx import HTTPXMock
2829

2930
# Create public RSA JWK by selecting only public key components
3031
PUBLIC_RSA_JWK = {k: PRIVATE_JWK[k] for k in ["kty", "n", "e", "alg", "use", "kid"] if k in PRIVATE_JWK}

0 commit comments

Comments
 (0)