Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Create raft of tests for structural reforms

Aperta
#1,885 1 commento 1 reazione 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@tawandamoyo ci sta già lavorando.

Dal 6/11/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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
Lingua principale
Python
Stelle
18
Fork
33
Merge medio
1g 7h
PR unite (30g)
22

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PolicyEngine/policyengine-api

Tutte le issue di PolicyEngine/policyengine-api

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.