iza-institute-of-labor-economics / gettsim

The GErman Taxes and Transfers SIMulator
https://gettsim.readthedocs.io/
GNU Affero General Public License v3.0
54 stars 32 forks source link

ENH: test case seem to have three adults in a Bedarfsgemeinschaft #731

Closed ChristianZimpelmann closed 4 months ago

ChristianZimpelmann commented 5 months ago

the test case src\_gettsim_tests\test_data\benefit_checks\2011\hh_id_5.yaml consists of three adults, but the input variables seem to imply that they are all part of the same Bedarfsgemeinschaft. This should not be possible.

Possibe solutions

hmgaudecker commented 5 months ago

Just since I was confused for a bit. We pass arbeitsl_geld_2_regelbedarf_m_bg, which is the same for all adults. Cannot be the case if the Bedarfsgemeinschaft was created endogenously, but we don't check that.

I am sort of indifferent between the two solutions. In any case, we should at some point have test cases for households with multiple bg's. Not sure whether this one is a particularly good start, though. @MImmesberger, your call!

MImmesberger commented 5 months ago

Properly testing Wohngeld vs Bürgergeld makes sense once we fixed #710.

I will remove one adult from the test date, I think the test doesn’t rely on having three adults (might have missed something when looking at it quickly. Will take a proper look tomorrow).

MImmesberger commented 4 months ago

Closed via #751