mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
Fixed test case for replace bom
This commit is contained in:
@@ -23,3 +23,8 @@ class TestBOMUpdateTool(unittest.TestCase):
|
|||||||
|
|
||||||
self.assertFalse(frappe.db.sql("select name from `tabBOM Item` where bom_no=%s", current_bom))
|
self.assertFalse(frappe.db.sql("select name from `tabBOM Item` where bom_no=%s", current_bom))
|
||||||
self.assertTrue(frappe.db.sql("select name from `tabBOM Item` where bom_no=%s", bom_doc.name))
|
self.assertTrue(frappe.db.sql("select name from `tabBOM Item` where bom_no=%s", bom_doc.name))
|
||||||
|
|
||||||
|
# reverse, as it affects other testcases
|
||||||
|
update_tool.current_bom = bom_doc.name
|
||||||
|
update_tool.new_bom = current_bom
|
||||||
|
update_tool.replace_bom()
|
||||||
Reference in New Issue
Block a user