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.
2 parents d872393 + ce44bc6 commit 920f071Copy full SHA for 920f071
tests/unit/auth/test_noop_with_token.py
@@ -55,7 +55,15 @@ 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 if checks for Authorization header is in place.
60
+
61
+ Test that NoopWithTokenAuthDependency raises an HTTPException when no
62
+ Authorization header is present in the request.
63
64
+ Asserts that the exception has a status code of 400 and the detail message
65
+ "No Authorization header found".
66
67
dependency = NoopWithTokenAuthDependency()
68
69
# Create a mock request without token
0 commit comments