Skip to content

fix: ThrottleMiddleware X-Forwarded-For リスク明記 + HTTP テスト fixture 整理 (#111 #113)#119

Closed
hideyukiMORI wants to merge 2 commits into
mainfrom
fix/111-113-docs-test-cleanup
Closed

fix: ThrottleMiddleware X-Forwarded-For リスク明記 + HTTP テスト fixture 整理 (#111 #113)#119
hideyukiMORI wants to merge 2 commits into
mainfrom
fix/111-113-docs-test-cleanup

Conversation

@hideyukiMORI
Copy link
Copy Markdown
Owner

Summary

#111 — ThrottleMiddleware X-Forwarded-For 偽装リスクをドキュメント化

  • docs/adr/0006-rate-limiting.md に Known Limitations セクションを追加(X-Forwarded-For 偽装リスクと本番での reverse proxy 必須の旨を明記)
  • docs/reference/framework-modules.md (EN / JA) の ThrottleMiddleware 説明に注意書きを追加

#113 — HTTP テストの _client() を conftest fixture に移動

  • tests/example/conftest.py を新規作成(function スコープの client fixture)
  • test_list_notes.py, test_tags.py, test_comment_http.py を pytest fixture スタイルに移行
  • AppSettings(throttle_enabled=False) に統一してレートリミットによるフレイクテストを防止

Closes #111
Closes #113

Test plan

  • uv run pytest が全パスすること

🤖 Generated with Claude Code

hideyukiMORI and others added 2 commits May 20, 2026 00:48
…113)

[#111] ThrottleMiddleware の X-Forwarded-For 偽装リスクをドキュメント化
- ADR-0006 に Known Limitations セクションを追加
- docs/reference/framework-modules.md (EN / JA) の ThrottleMiddleware 説明に注意書きを追加

[#113] HTTP テストの _client() を conftest fixture に移動
- tests/example/conftest.py を新規作成 — function スコープ client fixture
- test_list_notes.py, test_tags.py, test_comment_http.py を pytest fixture スタイルに移行
- AppSettings(throttle_enabled=False) に統一してフレイクテスト防止

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 のコード品質評価で作成した PR #114#119 を一覧化。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hideyukiMORI
Copy link
Copy Markdown
Owner Author

同等の変更が手動コミットで main に取り込み済みのため Close します(PR #143 / #144 / #150 参照)。

@hideyukiMORI hideyukiMORI deleted the fix/111-113-docs-test-cleanup branch May 20, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant