Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions 24 tests/client/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,16 +836,20 @@ async def test_token_exchange_error_basic(self, oauth_provider, oauth_client_inf
"revocation_endpoint",
),
(
# TODO(Marcelo): Since we are using `AnyUrl`, the trailing slash is always added.
# pytest.param(
# "https://auth.example.com",
# "https://auth.example.com/docs",
# "https://auth.example.com/authorize",
# "https://auth.example.com/token",
# "https://auth.example.com/register",
# "https://auth.example.com/revoke",
# id="simple-url",
# ),
# Pydantic's AnyUrl incorrectly adds trailing slash to base URLs
# This is being fixed in https://github.com/pydantic/pydantic-core/pull/1719 (Pydantic 2.12+)
pytest.param(
"https://auth.example.com",
"https://auth.example.com/docs",
"https://auth.example.com/authorize",
"https://auth.example.com/token",
"https://auth.example.com/register",
"https://auth.example.com/revoke",
id="simple-url",
marks=pytest.mark.xfail(
reason="Pydantic AnyUrl adds trailing slash to base URLs - fixed in Pydantic 2.12+"
),
),
pytest.param(
"https://auth.example.com/",
"https://auth.example.com/docs",
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.