refactor: move inline imports to module level (#1893)
This commit is contained in:
parent
c06362126b
commit
5d80f4efc8
1 changed files with 58 additions and 122 deletions
|
|
@ -1,5 +1,7 @@
|
|||
"""Tests for OAuth 2.0 Resource Indicators utilities."""
|
||||
|
||||
from pydantic import HttpUrl
|
||||
|
||||
from mcp.shared.auth_utils import check_resource_allowed, resource_url_from_server_url
|
||||
|
||||
|
||||
|
|
@ -37,8 +39,6 @@ class TestResourceUrlFromServerUrl:
|
|||
|
||||
def test_handles_pydantic_urls(self):
|
||||
"""Should handle Pydantic URL types."""
|
||||
from pydantic import HttpUrl
|
||||
|
||||
url = HttpUrl("https://example.com/path")
|
||||
assert resource_url_from_server_url(url) == "https://example.com/path"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue