Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

multiple_choices vs multiple_choices_redirect

オープン
#184 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

  • #478 @ryanduguid による — マージされずにクローズ

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
testing-qa

調査の方向性

tests/test_redirects.py の TestMultipleChoicesRedirects と、tests/conftest.py の SimpleApp の routes および call から始めます。redirect のテストを実行し、/multiple_choices_redirect/ がデフォルトの 200 フォールバックではなく、定義された response を検証することを意図しているか確認します。テストがフォールバックを暗黙に使用しなくなり、不明な URL が合意されたエラー動作になることが完了の条件です。

索引モデルが issue の本文から書いたものです。

説明

While working on #183 and wondering why some tests take a long time, I noticed a bug in TestMultipleChoicesRedirects - the test accesses /multiple_choices_redirect/ but the SimpleApp server only defines /multiple_choices/ - so in this case, it falls back to the default 200 response in __call__. This may be hiding a real bug, I didn't really investigate further.

Maybe it would be a better idea to return a 404 or 500 error in cases of unknown URLs

主要言語
Python
スター
505
フォーク
153
平均マージ
5日 6時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

psf/cachecontrol のほかの issue

psf/cachecontrol の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。