mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
fix: tests
This commit is contained in:
@@ -212,7 +212,7 @@ class TestEmployeeCheckin(FrappeTestCase):
|
|||||||
date = getdate()
|
date = getdate()
|
||||||
from_date = get_year_start(date)
|
from_date = get_year_start(date)
|
||||||
to_date = get_year_ending(date)
|
to_date = get_year_ending(date)
|
||||||
holiday_list = make_holiday_list()
|
holiday_list = make_holiday_list(from_date=from_date, to_date=to_date)
|
||||||
|
|
||||||
employee = make_employee("test_shift_with_holiday@example.com", company="_Test Company")
|
employee = make_employee("test_shift_with_holiday@example.com", company="_Test Company")
|
||||||
setup_shift_type(shift_type="Test Holiday Shift", holiday_list=holiday_list)
|
setup_shift_type(shift_type="Test Holiday Shift", holiday_list=holiday_list)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class TestMonthlyAttendanceSheet(FrappeTestCase):
|
|||||||
date = getdate()
|
date = getdate()
|
||||||
from_date = get_year_start(date)
|
from_date = get_year_start(date)
|
||||||
to_date = get_year_ending(date)
|
to_date = get_year_ending(date)
|
||||||
make_holiday_list(start_date=from_date, to_date=to_date)
|
make_holiday_list(from_date=from_date, to_date=to_date)
|
||||||
|
|
||||||
@set_holiday_list("Salary Slip Test Holiday List", "_Test Company")
|
@set_holiday_list("Salary Slip Test Holiday List", "_Test Company")
|
||||||
def test_monthly_attendance_sheet_report(self):
|
def test_monthly_attendance_sheet_report(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user