mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-30 07:08:24 +00:00
test: reuse BootStrapTestData master data to reduce runtime
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,6 @@
|
|||||||
import frappe
|
import frappe
|
||||||
from frappe.utils import add_days, today
|
from frappe.utils import add_days, today
|
||||||
|
|
||||||
from erpnext.stock.doctype.item.test_item import make_item
|
|
||||||
from erpnext.stock.doctype.landed_cost_voucher.test_landed_cost_voucher import (
|
from erpnext.stock.doctype.landed_cost_voucher.test_landed_cost_voucher import (
|
||||||
create_landed_cost_voucher,
|
create_landed_cost_voucher,
|
||||||
)
|
)
|
||||||
@@ -26,12 +25,11 @@ class TestLandedCostReport(ERPNextTestSuite):
|
|||||||
return execute(filters)[1]
|
return execute(filters)[1]
|
||||||
|
|
||||||
def test_landed_cost_applied_to_receipt(self):
|
def test_landed_cost_applied_to_receipt(self):
|
||||||
item = make_item("_Test Landed Cost Report Item", {"is_stock_item": 1}).name
|
|
||||||
|
|
||||||
pr = make_purchase_receipt(
|
pr = make_purchase_receipt(
|
||||||
item_code=item,
|
item_code="_Test Item",
|
||||||
|
supplier="_Test Supplier",
|
||||||
company="_Test Company",
|
company="_Test Company",
|
||||||
warehouse="_Test Warehouse - _TC",
|
warehouse="Stores - _TC",
|
||||||
qty=10,
|
qty=10,
|
||||||
rate=100,
|
rate=100,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user