Skip to content

Commit

Permalink
test: failing assertion value due to missing precision
Browse files Browse the repository at this point in the history
(cherry picked from commit a999c60)
  • Loading branch information
asmitahase authored and mergify[bot] committed Feb 2, 2025
1 parent 711b323 commit 26cf8bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hrms/payroll/doctype/salary_slip/test_salary_slip.py
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,9 @@ def test_statistical_component_based_on_payment_days(self):
precision = entry.precision("amount")
break

self.assertEqual(amount, flt((1000 * ss.payment_days / ss.total_working_days) * 0.5, precision))
self.assertEqual(
amount, flt(flt((1000 * ss.payment_days / ss.total_working_days), precision) * 0.5, precision)
)

def make_activity_for_employee(self):
activity_type = frappe.get_doc("Activity Type", "_Test Activity Type")
Expand Down

0 comments on commit 26cf8bb

Please sign in to comment.