Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Create raft of tests for structural reforms

Offen
#1,885 1 Kommentar 1 Reaktion 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

@tawandamoyo arbeitet bereits daran.

Seit 06.11.2024.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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
Vorherrschende Sprache
Python
Sterne
18
Forks
33
Ø Merge
2 T. 18 Std.
Gemergte PRs (30 T.)
36

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus PolicyEngine/policyengine-api

Alle Issues in PolicyEngine/policyengine-api

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.