feat: 增强日历功能并集成 AgentScope 代理服务
This commit is contained in:
@@ -78,7 +78,7 @@ def test_verify_rejects_invalid_issuer() -> None:
|
||||
issuer="https://wrong-issuer.example.com/auth/v1",
|
||||
)
|
||||
|
||||
with pytest.raises(TokenValidationError):
|
||||
with pytest.raises(TokenValidationError, match="Token issuer mismatch"):
|
||||
verifier.verify(token)
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ def test_verify_rejects_missing_audience() -> None:
|
||||
audience=None,
|
||||
)
|
||||
|
||||
with pytest.raises(TokenValidationError):
|
||||
with pytest.raises(TokenValidationError, match="Token validation failed"):
|
||||
verifier.verify(token)
|
||||
|
||||
|
||||
@@ -146,7 +146,7 @@ def test_verify_rejects_rs256_token() -> None:
|
||||
issuer="https://example.supabase.co/auth/v1",
|
||||
)
|
||||
|
||||
with pytest.raises(TokenValidationError):
|
||||
with pytest.raises(TokenValidationError, match="Token algorithm invalid"):
|
||||
verifier.verify(token)
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ def test_verify_rejects_expired_token() -> None:
|
||||
algorithm="HS256",
|
||||
)
|
||||
|
||||
with pytest.raises(TokenValidationError):
|
||||
with pytest.raises(TokenValidationError, match="Token expired"):
|
||||
verifier.verify(token)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user