Skip to content
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
10 changes: 9 additions & 1 deletion tests/unit/auth/test_noop_with_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,15 @@ async def test_noop_with_token_auth_dependency_custom_user_id():


async def test_noop_with_token_auth_dependency_no_token():
"""Test the NoopWithTokenAuthDependency class with no token."""
"""
Test if checks for Authorization header is in place.

Test that NoopWithTokenAuthDependency raises an HTTPException when no
Authorization header is present in the request.

Asserts that the exception has a status code of 400 and the detail message
"No Authorization header found".
"""
dependency = NoopWithTokenAuthDependency()

# Create a mock request without token
Expand Down
Loading