|
14 | 14 | {"age": 30, "employment_income": 50000}, |
15 | 15 | {"age": 28, "employment_income": 30000}, |
16 | 16 | ], |
17 | | - "tax_unit": {}, |
18 | | - "family": {}, |
19 | | - "household": {"state_name": "CA"}, |
| 17 | + "tax_unit": [{}], |
| 18 | + "family": [{}], |
| 19 | + "household": [{"state_name": "CA"}], |
20 | 20 | } |
21 | 21 |
|
22 | 22 | MOCK_UK_HOUSEHOLD_CREATE = { |
|
26 | 26 | "people": [ |
27 | 27 | {"age": 40, "employment_income": 35000}, |
28 | 28 | ], |
29 | | - "benunit": {"is_married": False}, |
30 | | - "household": {"region": "LONDON"}, |
| 29 | + "benunit": [{"is_married": False}], |
| 30 | + "household": [{"region": "LONDON"}], |
| 31 | +} |
| 32 | + |
| 33 | +MOCK_US_MULTI_GROUP_HOUSEHOLD_CREATE = { |
| 34 | + "country_id": "us", |
| 35 | + "year": 2024, |
| 36 | + "label": "US multi-group household", |
| 37 | + "people": [ |
| 38 | + { |
| 39 | + "person_id": 0, |
| 40 | + "person_household_id": 0, |
| 41 | + "person_tax_unit_id": 0, |
| 42 | + "person_marital_unit_id": 0, |
| 43 | + "age": 30, |
| 44 | + "employment_income": 50000, |
| 45 | + }, |
| 46 | + { |
| 47 | + "person_id": 1, |
| 48 | + "person_household_id": 0, |
| 49 | + "person_tax_unit_id": 0, |
| 50 | + "person_marital_unit_id": 1, |
| 51 | + "age": 28, |
| 52 | + "employment_income": 30000, |
| 53 | + }, |
| 54 | + ], |
| 55 | + "tax_unit": [{"tax_unit_id": 0, "state_name": "CA"}], |
| 56 | + "marital_unit": [ |
| 57 | + {"marital_unit_id": 0}, |
| 58 | + {"marital_unit_id": 1}, |
| 59 | + ], |
| 60 | + "family": [{"family_id": 0}], |
| 61 | + "spm_unit": [{"spm_unit_id": 0}], |
| 62 | + "household": [{"household_id": 0, "state_name": "CA"}], |
| 63 | +} |
| 64 | + |
| 65 | +MOCK_US_FULL_MULTI_GROUP_HOUSEHOLD_CREATE = { |
| 66 | + "country_id": "us", |
| 67 | + "year": 2024, |
| 68 | + "label": "US fully multi-group household", |
| 69 | + "people": [ |
| 70 | + { |
| 71 | + "person_id": 0, |
| 72 | + "person_household_id": 0, |
| 73 | + "person_tax_unit_id": 0, |
| 74 | + "person_marital_unit_id": 0, |
| 75 | + "person_family_id": 0, |
| 76 | + "person_spm_unit_id": 0, |
| 77 | + "age": 30, |
| 78 | + "employment_income": 50000, |
| 79 | + }, |
| 80 | + { |
| 81 | + "person_id": 1, |
| 82 | + "person_household_id": 1, |
| 83 | + "person_tax_unit_id": 1, |
| 84 | + "person_marital_unit_id": 1, |
| 85 | + "person_family_id": 1, |
| 86 | + "person_spm_unit_id": 1, |
| 87 | + "age": 28, |
| 88 | + "employment_income": 30000, |
| 89 | + }, |
| 90 | + ], |
| 91 | + "tax_unit": [ |
| 92 | + {"tax_unit_id": 0, "state_name": "CA"}, |
| 93 | + {"tax_unit_id": 1, "state_name": "CA"}, |
| 94 | + ], |
| 95 | + "marital_unit": [ |
| 96 | + {"marital_unit_id": 0}, |
| 97 | + {"marital_unit_id": 1}, |
| 98 | + ], |
| 99 | + "family": [ |
| 100 | + {"family_id": 0}, |
| 101 | + {"family_id": 1}, |
| 102 | + ], |
| 103 | + "spm_unit": [ |
| 104 | + {"spm_unit_id": 0}, |
| 105 | + {"spm_unit_id": 1}, |
| 106 | + ], |
| 107 | + "household": [ |
| 108 | + {"household_id": 0, "state_name": "CA"}, |
| 109 | + {"household_id": 1, "state_name": "NY"}, |
| 110 | + ], |
31 | 111 | } |
32 | 112 |
|
33 | 113 | MOCK_HOUSEHOLD_MINIMAL = { |
|
36 | 116 | "people": [{"age": 25}], |
37 | 117 | } |
38 | 118 |
|
| 119 | +MOCK_US_HOUSEHOLD_CREATE_LEGACY = { |
| 120 | + "country_id": "us", |
| 121 | + "year": 2024, |
| 122 | + "label": "US legacy household", |
| 123 | + "people": [ |
| 124 | + {"age": 30, "employment_income": 50000}, |
| 125 | + {"age": 28, "employment_income": 30000}, |
| 126 | + ], |
| 127 | + "tax_unit": {}, |
| 128 | + "family": {}, |
| 129 | + "household": {"state_name": "CA"}, |
| 130 | +} |
| 131 | + |
39 | 132 |
|
40 | 133 | # ----------------------------------------------------------------------------- |
41 | 134 | # Factory functions |
|
0 commit comments