From a4bf02de6cd52a71f226801df3406f601fecc2bd Mon Sep 17 00:00:00 2001 From: Saurabh Date: Wed, 18 Nov 2015 15:04:20 +0530 Subject: [PATCH] [fixes] overlapping allocation --- erpnext/hr/doctype/leave_allocation/test_leave_allocation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/hr/doctype/leave_allocation/test_leave_allocation.py b/erpnext/hr/doctype/leave_allocation/test_leave_allocation.py index b3eee311219..3b22eb2e44c 100644 --- a/erpnext/hr/doctype/leave_allocation/test_leave_allocation.py +++ b/erpnext/hr/doctype/leave_allocation/test_leave_allocation.py @@ -4,7 +4,9 @@ import unittest from frappe.utils import getdate class TestLeaveAllocation(unittest.TestCase): - def test_overlapping_allocation(self): + def test_overlapping_allocation(self): + frappe.db.sql("delete from `tabLeave Allocation`") + employee = frappe.get_doc("Employee", frappe.db.sql_list("select name from tabEmployee limit 1")[0]) leaves = [ {