Update test_leave_application.py

This commit is contained in:
Manas Solanki
2018-06-12 11:18:01 +05:30
committed by GitHub
parent 26943184e6
commit 65b55a53a6

View File

@@ -369,7 +369,7 @@ class TestLeaveApplication(unittest.TestCase):
employee = get_employee()
leave_type = 'Test Earned Leave Type'
if not frappe.db.exists('Leave Type', leave_type):
leave_type = frappe.get_doc(dict(
leave_type_doc = frappe.get_doc(dict(
leave_type_name = leave_type,
doctype = 'Leave Type',
is_earned_leave = 1,
@@ -448,4 +448,4 @@ def allocate_leaves(employee, leave_period, leave_type, new_leaves_allocated, el
"docstatus": 1
}).insert()
allocate_leave.submit()
allocate_leave.submit()