Skip to content

test(server): add renew-expiration route coverage#290

Merged
Pangjiping merged 1 commit intoalibaba:mainfrom
liuxiaopai-ai:codex/test-renew-expiration-route
Mar 2, 2026
Merged

test(server): add renew-expiration route coverage#290
Pangjiping merged 1 commit intoalibaba:mainfrom
liuxiaopai-ai:codex/test-renew-expiration-route

Conversation

@liuxiaopai-ai
Copy link
Contributor

Summary

  • add route tests for renew-expiration endpoint in server/tests/test_routes_renew_expiration.py
  • verify success flow returns updated expiration timestamp
  • verify invalid payload returns 422
  • verify service-layer HTTPException propagation and auth enforcement

Why

This fills missing lifecycle API test coverage for expiration renewal behavior and error handling.

Validation

  • python3 -m pytest server/tests/test_routes_renew_expiration.py -q
  • python3 -m ruff check server/tests/test_routes_renew_expiration.py

@CLAassistant
Copy link

CLAassistant commented Mar 1, 2026

CLA assistant check
All committers have signed the CLA.

@Pangjiping Pangjiping merged commit c2745d4 into alibaba:main Mar 2, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants