mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 09:05:00 +00:00
test: clear Leave Period before running Leave Allocation tests (#24928)
This commit is contained in:
@@ -6,6 +6,10 @@ from erpnext.hr.doctype.leave_type.test_leave_type import create_leave_type
|
||||
from erpnext.hr.doctype.leave_ledger_entry.leave_ledger_entry import process_expired_allocation, expire_allocation
|
||||
|
||||
class TestLeaveAllocation(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
frappe.db.sql("delete from `tabLeave Period`")
|
||||
|
||||
def test_overlapping_allocation(self):
|
||||
frappe.db.sql("delete from `tabLeave Allocation`")
|
||||
|
||||
@@ -177,4 +181,4 @@ def create_leave_allocation(**args):
|
||||
})
|
||||
return leave_allocation
|
||||
|
||||
test_dependencies = ["Employee", "Leave Type"]
|
||||
test_dependencies = ["Employee", "Leave Type"]
|
||||
|
||||
Reference in New Issue
Block a user