mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 22:48:27 +00:00
test: bom for item_code that is >VARCHAR_LEN
(cherry picked from commit e2c99e02a9)
This commit is contained in:
committed by
Ankush Menat
parent
404a82121d
commit
25df914bc6
@@ -385,6 +385,15 @@ class TestBOM(ERPNextTestCase):
|
||||
self.assertEqual(bom.transfer_material_against, "Work Order")
|
||||
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"):
|
||||
return frappe.db.get_value("BOM", {"item": item_code, "is_active": 1, "is_default": 1})
|
||||
|
||||
Reference in New Issue
Block a user