Skip to content

Commit

Permalink
update tests for taxcalc 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-Metz committed Mar 11, 2020
1 parent 5ef5c2f commit 4f152fe
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions cs-config/cs_config/tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def test_convert_adj():

assert res == {
"STD": {
2019: [0, 1, 12268.8, 18403.2, 24537.6]
2019: [0, 1, 12200.0, 18350.0, 24400.0]
},
"EITC_c": {
2019: [1000.0, 3538.53, 5844.04, 6575.05]
2019: [1000.0, 3526.0, 5828.0, 6557.0]
},
"BEN_ssi_repeal": {
2019: True
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- conda-forge
dependencies:
- python>=3.6.5
- taxcalc<2.8.0
- taxcalc
- behresp>=0.9.0
- pandas>=0.23
- numpy>=1.13
Expand Down
4 changes: 2 additions & 2 deletions taxcrunch/tests/expected_calc_table.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ Adjusted Gross Income (AGI),100000.0,100000.0,100001.0
Unemployment Insurance in AGI,0.0,0.0,0.0
Social Security in AGI,0.0,0.0,0.0
Itemized Deductions,0.0,0.0,0.0
Taxable Income,87731.2,89115.07,89116.07
Taxable Income,87800.0,89115.07,89116.07
Child Tax Credit (CTC),0.0,0.0,0.0
CTC Refundable,0.0,0.0,0.0
Child Care Credit,0.0,0.0,0.0
Earned Income Tax Credit (EITC),0.0,0.0,0.0
Alternative Minimum Tax (AMT) Taxable Income,100000.0,100000.0,100001.0
AMT Liability,0.0,0.0,0.0
Net Investment Income Tax,0.0,0.0,0.0
Income Tax Before Credits,15217.07,17818.82,17819.07
Income Tax Before Credits,15246.5,17818.82,17819.07
12 changes: 6 additions & 6 deletions taxcrunch/tests/expected_multi_table.csv
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
,ID,Individual Income Tax,Payroll Tax,Wages,AGI,UI in AGI,OASDI in AGI,Itemized Deductions,Taxable Inc,CTC,CTC Refundable,Child care credit,EITC,AMT Taxable Income,AMT Liability,Net Investment Income Tax,Income Tax Before Credits,FICA,Payroll Tax MTR,Income Tax MTR,Combined MTR
0,1.0,23397.147199999996,21137.961919999998,160000.0,164500.0,0.0,0.0,0.0,146096.8,4000.0,0.0,0.0,0.0,164500.0,0.0,0.0,27397.147199999996,21137.961919999998,0.02899999999499414,0.240000000121654,0.26900000011664815
1,2.0,-5385.396063999999,7267.5,47500.0,47800.0,0.0,0.0,0.0,23262.4,2365.9536000000003,3634.0463999999997,0.0,1751.3496639999994,47800.0,0.0,0.0,2365.9536000000003,7267.5,0.15300000004572212,0.3305999999611231,0.4836000000068452
2,3.0,10049.4088,10710.0,70000.0,80000.0,0.0,0.0,0.0,67731.2,0.0,0.0,0.0,0.0,80000.0,0.0,0.0,10049.4088,10710.0,0.15299999995477265,0.21999999989930075,0.37300000003597233
3,4.0,6538.8175999999985,18819.0,123000.0,124200.0,0.0,0.0,0.0,99662.4,6000.0,0.0,0.0,0.0,124200.0,0.0,0.0,13538.817599999998,18819.0,0.1530000001366716,0.22000000026309863,0.3730000003997702
4,5.0,40659.7456,23747.961919999998,250000.0,251200.0,0.0,0.0,0.0,226662.4,2000.0,0.0,0.0,0.0,251200.0,0.0,45.6,42614.1456,23747.961919999998,0.0380000001314329,0.23999999975785613,0.2780000002530869
0,1.0,23425.0,21119.6,160000.0,164500.0,0.0,0.0,0.0,146150.0,4000.0,0.0,0.0,0.0,164500.0,0.0,0.0,27425.0,21119.6,0.02899999999499414,0.240000000121654,0.26900000011664815
1,2.0,-5333.411999999999,7267.5,47500.0,47800.0,0.0,0.0,0.0,23400.0,2384.0,3616.0,0.0,1717.4119999999994,47800.0,0.0,0.0,2384.0,7267.5,0.15300000004572212,0.3305999999611231,0.4836000000068452
2,3.0,10074.5,10710.0,70000.0,80000.0,0.0,0.0,0.0,67800.0,0.0,0.0,0.0,0.0,80000.0,0.0,0.0,10074.5,10710.0,0.15299999995477265,0.21999999989930075,0.37299999967217445
3,4.0,6589.0,18819.0,123000.0,124200.0,0.0,0.0,0.0,99800.0,6000.0,0.0,0.0,0.0,124200.0,0.0,0.0,13589.0,18819.0,0.1530000001366716,0.21999999989930075,0.37300000003597233
4,5.0,40718.6,23729.6,250000.0,251200.0,0.0,0.0,0.0,226800.0,2000.0,0.0,0.0,0.0,251200.0,0.0,45.6,42673.0,23729.6,0.0380000001314329,0.23999999975785613,0.27799999952549115
5,6.0,0.0,1683.0,11000.0,11000.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,11000.0,0.0,0.0,0.0,1683.0,0.15300000000024738,0.0,0.15300000000024738
6,7.0,-3402.289388,5967.0,39000.0,39250.0,0.0,0.0,0.0,20846.8,2193.5231999999996,1806.4768000000004,0.0,1595.8125879999998,39250.0,0.0,0.0,2193.5231999999996,5967.0,0.15300000004572212,0.33060000014302204,0.48360000018874416
6,7.0,-3368.6679999999997,5967.0,39000.0,39250.0,0.0,0.0,0.0,20900.0,2201.0,1799.0,0.0,1569.6679999999997,39250.0,0.0,0.0,2201.0,5967.0,0.15300000004572212,0.33060000000659784,0.48360000005231996

0 comments on commit 4f152fe

Please sign in to comment.