added test case for leave_application

This commit is contained in:
Rushabh Mehta
2013-02-05 23:25:37 +05:30
parent 4e95bb59a0
commit c2563effbf
14 changed files with 124 additions and 20 deletions

View File

@@ -123,3 +123,15 @@ class DocType:
if self.doc.status == 'Left' and not self.doc.relieving_date:
msgprint("Please enter relieving date.")
raise Exception
test_records = [[{
"doctype":"Employee",
"employee_name": "_Test Employee",
"naming_series": "_T-Employee-",
"date_of_joining": "2010-01-01",
"date_of_birth": "1980-01-01",
"gender": "Female",
"status": "Active",
"company": "_Test Company",
"user_id": "test@erpnext.com"
}]]