feat: 增强日历功能并集成 AgentScope 代理服务

This commit is contained in:
qzl
2026-03-11 15:28:29 +08:00
parent e55e445906
commit e20e7d2a02
85 changed files with 5175 additions and 885 deletions
@@ -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)