Skip to content

Commit 3e6e5aa

Browse files
committed
Better docstring for auth no-op unit test
1 parent d872393 commit 3e6e5aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/unit/auth/test_noop_with_token.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ async def test_noop_with_token_auth_dependency_custom_user_id():
5555

5656

5757
async def test_noop_with_token_auth_dependency_no_token():
58-
"""Test the NoopWithTokenAuthDependency class with no token."""
58+
"""
59+
Test that NoopWithTokenAuthDependency raises an HTTPException when no Authorization header is present in the request.
60+
61+
Asserts that the exception has a status code of 400 and the detail message "No Authorization header found".
62+
"""
5963
dependency = NoopWithTokenAuthDependency()
6064

6165
# Create a mock request without token

0 commit comments

Comments
 (0)