mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
refactor(test): make serial and batch bundle deterministic
This commit is contained in:
@@ -40,6 +40,7 @@ class TestSerialandBatchBundle(ERPNextTestSuite):
|
|||||||
"doctype": "Serial No",
|
"doctype": "Serial No",
|
||||||
"serial_no": sn,
|
"serial_no": sn,
|
||||||
"item_code": serial_item_code,
|
"item_code": serial_item_code,
|
||||||
|
"company": self.companies[0].name,
|
||||||
}
|
}
|
||||||
).insert(ignore_permissions=True)
|
).insert(ignore_permissions=True)
|
||||||
|
|
||||||
@@ -706,6 +707,7 @@ class TestSerialandBatchBundle(ERPNextTestSuite):
|
|||||||
"doctype": "Serial No",
|
"doctype": "Serial No",
|
||||||
"serial_no": serial_no,
|
"serial_no": serial_no,
|
||||||
"item_code": item,
|
"item_code": item,
|
||||||
|
"company": self.companies[0].name,
|
||||||
}
|
}
|
||||||
).insert(ignore_permissions=True)
|
).insert(ignore_permissions=True)
|
||||||
|
|
||||||
@@ -803,6 +805,7 @@ class TestSerialandBatchBundle(ERPNextTestSuite):
|
|||||||
"doctype": "Serial No",
|
"doctype": "Serial No",
|
||||||
"serial_no": serial_no,
|
"serial_no": serial_no,
|
||||||
"item_code": sn_item,
|
"item_code": sn_item,
|
||||||
|
"company": self.companies[0].name,
|
||||||
}
|
}
|
||||||
).insert(ignore_permissions=True)
|
).insert(ignore_permissions=True)
|
||||||
serial_nos.append(serial_no)
|
serial_nos.append(serial_no)
|
||||||
|
|||||||
Reference in New Issue
Block a user