You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError: Unable to set a value for variable "年齢" for month-long period "2015-11".
ValueError: Unable to set a value for variable "家賃" for month-long period "2016-01".
openfisca_core.errors.period_mismatch_error.PeriodMismatchError: Unable to set a value for variable "所得" for month-long period "2015-01".
/app/openfisca_japan/tests/可処分所得.yaml:
Test '人物 earning 2500 in Jan 2017':
可処分所得@2017-01-01: [100150.] differs from 100200.0 with an absolute margin [50.] > 0
備考
上記テスト及び関連実装は、渋谷区の子育て支援制度の計算には不要です。
The text was updated successfully, but these errors were encountered:
現在、
make test
を実行すると、可処分所得に関連する以下のテストが失敗してしまいます。openfisca_japan/tests/ベーシックインカム.yaml
openfisca_japan/tests/住宅手当.yaml
openfisca_japan/tests/可処分所得.yaml
解消のためには、テストまたは実装の修正が必要です。
詳細
エラー1: periodの形式エラー
上記3ファイルすべて、periodの単位の不整合で失敗しました。
テストファイル: 月(month)指定
実装(variables classの
definition_period
属性): 日(day)指定期待する値と実装が返す値が食い違っていました。算出方法を把握できていないのですが、テスト/実装どちらかに合わせる必要があると思います。
https://github.com/project-inclusive/OpenFisca-Shibuya/blob/main/openfisca_japan/tests/%E5%8F%AF%E5%87%A6%E5%88%86%E6%89%80%E5%BE%97.yaml#L53
備考
上記テスト及び関連実装は、渋谷区の子育て支援制度の計算には不要です。
The text was updated successfully, but these errors were encountered: