chore: add D212 lint rule to enforce Google-style docstrings (#1892)

This commit is contained in:
Felix Weinberger 2026-01-16 16:10:52 +00:00 • committed by GitHub
commit d41d0c0128
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,4 @@
"""
Regression test for issue #1630: OAuth2 scope incorrectly set to resource_metadata URL.
"""Regression test for issue #1630: OAuth2 scope incorrectly set to resource_metadata URL.
This test verifies that when a 401 response contains both resource_metadata and scope
in the WWW-Authenticate header, the actual scope is used (not the resource_metadata URL).
@ -37,8 +36,7 @@ class MockTokenStorage:
@pytest.mark.anyio
async def test_401_uses_www_auth_scope_not_resource_metadata_url():
"""
Regression test for #1630: Ensure scope is extracted from WWW-Authenticate header,
"""Regression test for #1630: Ensure scope is extracted from WWW-Authenticate header,
not the resource_metadata URL.
When a 401 response contains: