Skip to content

Commit

Permalink
test: fix setUp
Browse files Browse the repository at this point in the history
  • Loading branch information
krantheman committed Jan 9, 2024
1 parent 7592b44 commit 031137a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def setUp(self):
"Leave Application",
"Leave Allocation",
"Leave Policy Assignment",
"Leave Policy",
"Leave Ledger Entry",
]:
frappe.db.delete(doctype)
Expand Down Expand Up @@ -123,7 +124,7 @@ def test_pro_rated_leave_allocation(self):
# tests no of leaves for passed months if assignment is based on Leave Period / Joining Date
def test_get_leaves_for_passed_months(self):
annual_allocation = 10
leave_type = create_leave_type(is_earned_leave=True)
leave_type = create_leave_type(leave_type_name="_Test Earned Leave", is_earned_leave=True)
leave_policy = create_leave_policy(leave_type=leave_type, annual_allocation=annual_allocation)
leave_policy.submit()

Expand Down

0 comments on commit 031137a

Please sign in to comment.