mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-09 08:11:19 +00:00
refactor(test): hardcoded names over dynamic ones
Much faster bootstrap without those get_doc calls
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user