refactor(test): hardcoded names over dynamic ones

Much faster bootstrap without those get_doc calls
This commit is contained in:
ruthra kumar
2026-03-01 21:33:45 +05:30
parent 5a4a77f5d2
commit e67165d6ce
26 changed files with 67 additions and 58 deletions

View File

@@ -39,7 +39,7 @@ class TestMapper(ERPNextTestSuite):
"order_type": "Sales",
"transaction_date": nowdate(),
"valid_till": add_months(nowdate(), 1),
"company": self.companies[0].name,
"company": "_Test Company",
}
)
for item in item_list:

View File

@@ -742,7 +742,7 @@ class TestSubcontractingController(ERPNextTestSuite):
"doctype": "Serial No",
"item_code": "Subcontracted SRM Item 2",
"serial_no": serial_no,
"company": self.companies[0].name,
"company": "_Test Company",
}
).insert()