Skip to content

Commit aee7ee9

Browse files
committed
Renamed test method to better reflect its purpose
Signed-off-by: Xin Fu <[email protected]>
1 parent 603fdc1 commit aee7ee9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/server/auth/middleware/test_bearer_auth.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,14 @@ async def send(message: Message) -> None:
307307
assert excinfo.value.detail == "Unauthorized"
308308
assert not app.called
309309

310-
async def test_no_user_with_adds_www_authenticate_header(
310+
async def test_unauthenticated_user_adds_www_authenticate_header(
311311
self,
312312
):
313-
"""Test middleware with no user in scope."""
313+
"""Test middleware with unauthenticated user.
314+
315+
It should add www-authenticate header to the response when resource metadata
316+
URL is provided.
317+
"""
314318
app = MockApp()
315319
middleware = RequireAuthMiddleware(
316320
app,

0 commit comments

Comments
 (0)