Enhanced disability premium property test never draws a Kingston claimant with highest-rate DLA care below the top amount

オープン 初心者向け
#2,904 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@MaxGhenis がすでに取り組んでいます。

2026年11月10日 から。

  • #2905 @MaxGhenis による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python, yaml
領域
backend, testing

調査の方向性

test_enhanced_disability_premium_properties.py と enhanced_disability_premium.yaml から始めます。issue によると、これらは main にも存在します。プロパティテストがどのように請求者を生成し、oracle と照合するかを読み、その後 dla_care_highest_part_amount を使った固定の Kingston の例を追加します。すべての年についてその例が oracle と照合され、説明されている条件の入れ替えを検出できれば完了です。

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

説明

In Kingston upon Thames, meets_council_tax_reduction_enhanced_disability_premium_condition reads is_enhanced_disabled_for_benefits. Unless the inputs supply that flag, its formula needs DLA care of at least 52 times the highest weekly rate. has_highest_dla_sc_award also holds for any positive amount in the HIGHER category, and for an amount no more than £1 a week below the top rate.

With has_highest_dla_sc_award in place of the flag in Kingston's condition, all four tests in test_enhanced_disability_premium_properties.py passed at #2808's head b99e8c594 (K4 in the mutation check). The generator can draw a Kingston claimant with dla_care_highest_part_amount, the HIGHER category at £1,000 a year, who holds the award without the amount, but none of the eight derandomized examples does. Case 25 of enhanced_disability_premium.yaml failed under the swap, because it enters the flag for a claimant with enhanced PIP daily living and no DLA. main at 8a8354fb6 carries the same test file, YAML and variables.

A fixed Kingston example with dla_care_highest_part_amount, which the test checks against its oracle in every year, would catch the swap.

主要言語
Python
スター
53
フォーク
34
平均マージ
2日 9時間
マージ済み PR(30日)
269

環境構築

はじめの一歩

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

PolicyEngine/policyengine-uk のほかの issue

PolicyEngine/policyengine-uk の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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