mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 02:14:48 +00:00
[bean] [mandatory] fixes in test cases
This commit is contained in:
@@ -292,7 +292,7 @@ class DocType(TransactionBase):
|
||||
return obj.doclist
|
||||
|
||||
# delete from doclist
|
||||
obj.doclist = filter(lambda d: d.name not in delete_list, obj.doclist)
|
||||
obj.doclist = webnotes.doclist(filter(lambda d: d.name not in delete_list, obj.doclist))
|
||||
|
||||
# delete from db
|
||||
webnotes.conn.sql("""\
|
||||
|
||||
@@ -59,11 +59,12 @@ class TestSalesOrder(unittest.TestCase):
|
||||
|
||||
def create_so(self, so_doclist = None):
|
||||
if not so_doclist:
|
||||
so_doclist =test_records[0]
|
||||
|
||||
so_doclist = test_records[0]
|
||||
|
||||
w = webnotes.bean(copy=so_doclist)
|
||||
w.insert()
|
||||
w.submit()
|
||||
|
||||
return w
|
||||
|
||||
def create_dn_against_so(self, so, delivered_qty=0):
|
||||
|
||||
Reference in New Issue
Block a user