@@ -392,7 +392,7 @@ def test_bom_recursion_1st_level(self):
392392 item_code = make_item (properties = {"is_stock_item" : 1 }).name
393393
394394 bom = frappe .new_doc ("BOM" )
395- bom .company = self . companies [ 0 ]. name
395+ bom .company = "_Test Company"
396396 bom .item = item_code
397397 bom .append ("items" , frappe ._dict (item_code = item_code ))
398398 bom .save ()
@@ -406,13 +406,13 @@ def test_bom_recursion_transitive(self):
406406 item2 = make_item (properties = {"is_stock_item" : 1 }).name
407407
408408 bom1 = frappe .new_doc ("BOM" )
409- bom1 .company = self . companies [ 0 ]. name
409+ bom1 .company = "_Test Company"
410410 bom1 .item = item1
411411 bom1 .append ("items" , frappe ._dict (item_code = item2 ))
412412 bom1 .save ()
413413
414414 bom2 = frappe .new_doc ("BOM" )
415- bom2 .company = self . companies [ 0 ]. name
415+ bom2 .company = "_Test Company"
416416 bom2 .item = item2
417417 bom2 .append ("items" , frappe ._dict (item_code = item1 ))
418418 bom2 .save ()
@@ -570,7 +570,7 @@ def test_bom_versioning(self):
570570 @timeout
571571 def test_clear_inpection_quality (self ):
572572 bom = frappe .copy_doc (self .globalTestRecords ["BOM" ][2 ], ignore_no_copy = True )
573- bom .company = self . companies [ 0 ]. name
573+ bom .company = "_Test Company"
574574 bom .docstatus = 0
575575 bom .is_default = 0
576576 bom .quality_inspection_template = "_Test Quality Inspection Template"
@@ -616,7 +616,7 @@ def test_set_default_bom_for_item_having_single_bom(self):
616616
617617 # Step 1: Create BOM
618618 bom = frappe .new_doc ("BOM" )
619- bom .company = self . companies [ 0 ]. name
619+ bom .company = "_Test Company"
620620 bom .item = fg_item .item_code
621621 bom .quantity = 1
622622 bom .append (
0 commit comments