Skip to content

Commit 4dd3ecc

Browse files
committed
fix: correct KeyError in test_karvid.py - use allowed_deduction and unused_limit instead of non-existent max_deduction and excess_amount
1 parent 95b5a2e commit 4dd3ecc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/tests/test_karvid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def test_80c():
6262
# Use keyword arguments
6363
result = calculate_80c_deduction(ppf=150000, elss=50000, life_insurance_premium=30000)
6464
print(f" ✅ Total 80C claimed: ₹{result['total_claimed']:,.0f}")
65-
print(f" ✅ Eligible deduction: ₹{result['max_deduction']:,.0f}")
66-
print(f" ✅ Excess over limit: ₹{result.get('excess_amount', 0):,.0f}")
65+
print(f" ✅ Eligible deduction: ₹{result['allowed_deduction']:,.0f}")
66+
print(f" ✅ Unused limit: ₹{result['unused_limit']:,.0f}")
6767

6868
return True
6969

0 commit comments

Comments
 (0)