mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
test: bom for item_code that is >VARCHAR_LEN
This commit is contained in:
committed by
Ankush Menat
parent
d9c91748f4
commit
e2c99e02a9
@@ -432,6 +432,15 @@ class TestBOM(FrappeTestCase):
|
|||||||
self.assertEqual(bom.transfer_material_against, "Work Order")
|
self.assertEqual(bom.transfer_material_against, "Work Order")
|
||||||
bom.delete()
|
bom.delete()
|
||||||
|
|
||||||
|
def test_bom_name_length(self):
|
||||||
|
""" test >140 char names"""
|
||||||
|
bom_tree = {
|
||||||
|
"x" * 140 : {
|
||||||
|
" ".join(["abc"] * 35): {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
create_nested_bom(bom_tree, prefix="")
|
||||||
|
|
||||||
|
|
||||||
def get_default_bom(item_code="_Test FG Item 2"):
|
def get_default_bom(item_code="_Test FG Item 2"):
|
||||||
return frappe.db.get_value("BOM", {"item": item_code, "is_active": 1, "is_default": 1})
|
return frappe.db.get_value("BOM", {"item": item_code, "is_active": 1, "is_default": 1})
|
||||||
|
|||||||
Reference in New Issue
Block a user