Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Create raft of tests for structural reforms

Đang mở
#1,885 1 bình luận 1 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@tawandamoyo đang làm issue này rồi.

Từ ngày 6/11/2024.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

There would be a lot of value to adding a series of tests around creating structural reforms with the following:

  • A reform using a neutralize_variable value on an existing piece of the default tax-benefit system
  • A reform using an update_variable value on an existing piece of the default tax-benefit system
  • A reform using an update_variable value to create a totally new variable in the system

All of these should be run in the following four-step manner:

  • For a relevant test household, baseline, no axes
  • Test household, reform, no axes
  • Test household, baseline, axes
  • Test household, reform, axes

This mimics the series of calls that occurs if a user inputs a reform, inputs a household, views their net income output, then clicks "Varying your earnings".

Each output should confirm that:

  • household_net_income is a valid value
  • Each of the default outputs is a valid value (we could even drill down the tree using metadata to ensure every possible display value is valid, depending on how long that makes the test time-wise)
  • Some variable added or altered by the structural reform is present and valid
Ngôn ngữ chính
Python
Star
18
Fork
33
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
22

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PolicyEngine/policyengine-api

Tất cả issue của PolicyEngine/policyengine-api

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.