Skip to content

Commit dc5f91b

Browse files
committed
chore(test): Increase test coverage across multiple modules
1 parent d537285 commit dc5f91b

File tree

15 files changed

+3714
-27
lines changed

15 files changed

+3714
-27
lines changed

.github/actions/spelling/allow.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ coro
2929
datamodel
3030
dunders
3131
genai
32+
getkwargs
3233
gle
3334
inmemory
3435
kwarg
3536
langgraph
3637
lifecycles
3738
linting
39+
lstrips
3840
oauthoidc
3941
opensource
4042
protoc
@@ -43,4 +45,6 @@ pyversions
4345
socio
4446
sse
4547
tagwords
48+
taskupdate
49+
testuuid
4650
vulnz

tests/auth/test_user.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import unittest
2+
3+
from a2a.auth.user import UnauthenticatedUser
4+
5+
6+
class TestUnauthenticatedUser(unittest.TestCase):
7+
def test_is_authenticated_returns_false(self):
8+
user = UnauthenticatedUser()
9+
self.assertFalse(user.is_authenticated)
10+
11+
def test_user_name_returns_empty_string(self):
12+
user = UnauthenticatedUser()
13+
self.assertEqual(user.user_name, '')
14+
15+
16+
if __name__ == '__main__':
17+
unittest.main()

0 commit comments

Comments
 (0)