Skip to content

Commit 920f071

Browse files
authored
Merge pull request #373 from tisnik/better-docstring-for-auth-noop-unit-test
Better docstring for auth no-op unit test
2 parents d872393 + ce44bc6 commit 920f071

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/unit/auth/test_noop_with_token.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,15 @@ 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 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+
"""
5967
dependency = NoopWithTokenAuthDependency()
6068

6169
# Create a mock request without token

0 commit comments

Comments
 (0)