Skip to content

Conversation

@ukwhatn
Copy link
Owner

@ukwhatn ukwhatn commented Jan 2, 2026

概要

HTTPリトライ機構のユニットテストを追加し、カバレッジを79%から83%に改善。

変更内容

  • tests/unit/test_http.py: 新規作成(25テスト)

    • _is_retryable_status: 5xx/4xx/2xx/3xxの判定テスト
    • calculate_backoff: バックオフ計算テスト
    • sync_get_with_retry: 同期GETリトライテスト
    • sync_post_with_retry: 同期POSTリトライテスト
    • async_get_with_retry: 非同期GETリトライテスト
  • tests/unit/test_requestutil.py: 新規作成(10テスト)

    • RequestUtil.request GET/POSTのリトライテスト
    • 無効メソッドのエラーテスト
  • uv.lock: バージョン同期

テスト結果

カバレッジ: 83%(閾値80%をクリア)

- test_http.py: _is_retryable_status, calculate_backoff, sync_get_with_retry, sync_post_with_retry, async_get_with_retryのテスト(25件)
- test_requestutil.py: RequestUtil.requestのGET/POST/エラーハンドリングテスト(10件)
- カバレッジ79%→83%に改善
@ukwhatn ukwhatn merged commit 6c2c5b3 into main Jan 2, 2026
13 checks passed
@ukwhatn ukwhatn deleted the fix/add-retry-tests branch January 2, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants