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

@@ -25,6 +25,8 @@ from webnotes import msgprint
sql = webnotes.conn.sql
get_value = webnotes.conn.get_value
test_records = []
class DocType:
def __init__(self,d,dl):
self.doc, self.doclist = d,dl

View File

@@ -30,4 +30,7 @@ class DocType:
webnotes.clear_cache()
msgprint(self.doc.name + _(""" is now the default Fiscal Year. \
Please refresh your browser for the change to take effect."""))
Please refresh your browser for the change to take effect."""))
test_records = [[{"doctype":"Fiscal Year", "year":"_Test Fiscal Year",
"year_start_date":"2013-01-01"}]]