test fixes
This commit is contained in:
parent
e5b3a56cea
commit
3ebc15cc8f
@ -13,14 +13,12 @@ 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"]:
|
||||
frappe.db.sql("delete from `tab%s`" % dt)
|
||||
|
||||
make_earning_salary_component(["Basic Salary", "Special Allowance", "HRA"])
|
||||
make_earning_salary_component(["Basic Salary", "Special Allowance", "HRA", "Leave Encashment"])
|
||||
make_deduction_salary_component(["Professional Tax", "TDS"])
|
||||
|
||||
def test_payroll_entry(self): # pylint: disable=no-self-use
|
||||
|
Loading…
x
Reference in New Issue
Block a user