test: fix flaky carry forwarded leave expiry test (#30810)

This commit is contained in:
Rucha Mahabal 2022-04-26 17:43:08 +05:30 committed by GitHub
parent 078f26bef3
commit 1cc8c79807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ class TestLeaveAllocation(FrappeTestCase):
def setUp(self):
frappe.db.delete("Leave Period")
frappe.db.delete("Leave Allocation")
frappe.db.delete("Leave Ledger Entry")
emp_id = make_employee("test_emp_leave_allocation@salary.com", company="_Test Company")
self.employee = frappe.get_doc("Employee", emp_id)