From e5b3a56ceaf00bb331a93bd2db445e56da61a39f Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 21 Jun 2018 15:21:17 +0530 Subject: [PATCH] Test case fixes --- erpnext/hr/doctype/loan/test_loan.py | 2 +- erpnext/hr/doctype/payroll_entry/test_payroll_entry.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/hr/doctype/loan/test_loan.py b/erpnext/hr/doctype/loan/test_loan.py index 7a0401a91d..740e429510 100644 --- a/erpnext/hr/doctype/loan/test_loan.py +++ b/erpnext/hr/doctype/loan/test_loan.py @@ -58,7 +58,7 @@ def create_loan(applicant, loan_type, loan_amount, repayment_method, repayment_p "repayment_method": repayment_method, "repayment_periods": repayment_periods, "disbursement_date": nowdate(), - "repayment_start_date": add_days(nowdate(), 10), + "repayment_start_date": nowdate(), "status": "Disbursed", "mode_of_payment": frappe.db.get_value('Mode of Payment', {'type': 'Cash'}, 'name'), "payment_account": frappe.db.get_value('Account', {'account_type': 'Cash', 'company': erpnext.get_default_company(),'is_group':0}, "name"), diff --git a/erpnext/hr/doctype/payroll_entry/test_payroll_entry.py b/erpnext/hr/doctype/payroll_entry/test_payroll_entry.py index 9cf49790de..b71cb49e54 100644 --- a/erpnext/hr/doctype/payroll_entry/test_payroll_entry.py +++ b/erpnext/hr/doctype/payroll_entry/test_payroll_entry.py @@ -13,6 +13,8 @@ from erpnext.hr.doctype.salary_slip.test_salary_slip import get_salary_component from erpnext.hr.doctype.salary_structure.test_salary_structure import make_salary_structure from erpnext.hr.doctype.loan.test_loan import create_loan +test_dependencies = ["Salary Component"] + class TestPayrollEntry(unittest.TestCase): def setUp(self): for dt in ["Salary Slip", "Salary Component", "Salary Component Account", "Payroll Entry", "Loan"]: