From a4decc2c59189a90a61df9e79e04111e92a230d2 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 29 Feb 2016 14:44:20 +0530 Subject: [PATCH] [minor] [test] fix for leap year --- erpnext/hr/doctype/employee/test_employee.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/hr/doctype/employee/test_employee.py b/erpnext/hr/doctype/employee/test_employee.py index 618be1b89e..dbd510bfd9 100644 --- a/erpnext/hr/doctype/employee/test_employee.py +++ b/erpnext/hr/doctype/employee/test_employee.py @@ -12,7 +12,7 @@ test_records = frappe.get_test_records('Employee') class TestEmployee(unittest.TestCase): def test_birthday_reminders(self): employee = frappe.get_doc("Employee", frappe.db.sql_list("select name from tabEmployee limit 1")[0]) - employee.date_of_birth = "1990" + frappe.utils.nowdate()[4:] + employee.date_of_birth = "1992" + frappe.utils.nowdate()[4:] employee.company_email = "test@example.com" employee.save()