We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d872393 commit 3e6e5aaCopy full SHA for 3e6e5aa
tests/unit/auth/test_noop_with_token.py
@@ -55,7 +55,11 @@ async def test_noop_with_token_auth_dependency_custom_user_id():
55
56
57
async def test_noop_with_token_auth_dependency_no_token():
58
- """Test the NoopWithTokenAuthDependency class with no token."""
+ """
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
63
dependency = NoopWithTokenAuthDependency()
64
65
# Create a mock request without token
0 commit comments