mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
fix: travis failing for leave application test
This commit is contained in:
committed by
deepeshgarg007
parent
bd1da65098
commit
61bd6ccc2b
@@ -235,8 +235,8 @@ class TestLeaveApplication(unittest.TestCase):
|
|||||||
frappe.get_doc(dict(
|
frappe.get_doc(dict(
|
||||||
doctype = 'Holiday List',
|
doctype = 'Holiday List',
|
||||||
holiday_list_name = holiday_list,
|
holiday_list_name = holiday_list,
|
||||||
from_date = date(date.today().year, 1, 1),
|
from_date = add_months(today, -6),
|
||||||
to_date = date(date.today().year, 12, 31),
|
to_date = add_months(today, 6),
|
||||||
holidays = [
|
holidays = [
|
||||||
dict(holiday_date = today, description = 'Test')
|
dict(holiday_date = today, description = 'Test')
|
||||||
]
|
]
|
||||||
@@ -597,8 +597,8 @@ def get_leave_period():
|
|||||||
return frappe.get_doc(dict(
|
return frappe.get_doc(dict(
|
||||||
name = 'Test Leave Period',
|
name = 'Test Leave Period',
|
||||||
doctype = 'Leave Period',
|
doctype = 'Leave Period',
|
||||||
from_date = "{0}-12-01".format(now_datetime().year - 1),
|
from_date = add_months(nowdate(), -6),
|
||||||
to_date = "{0}-12-31".format(now_datetime().year),
|
to_date = add_months(nowdate(), 6),
|
||||||
company = "_Test Company",
|
company = "_Test Company",
|
||||||
is_active = 1
|
is_active = 1
|
||||||
)).insert()
|
)).insert()
|
||||||
|
|||||||
Reference in New Issue
Block a user