test: don't load test records into db during module import

This commit is contained in:
David
2024-10-11 13:14:31 +02:00
parent 8beee1982f
commit d32326fca1
2 changed files with 1 additions and 3 deletions

View File

@@ -1308,4 +1308,4 @@ def get_requested_qty(item_code="_Test Item", warehouse="_Test Warehouse - _TC")
return flt(frappe.db.get_value("Bin", {"item_code": item_code, "warehouse": warehouse}, "indented_qty"))
EXTRA_TEST_RECORD_DEPENDENCIES = ["BOM", "Item Price"]
EXTRA_TEST_RECORD_DEPENDENCIES = ["BOM", "Item Price", "Warehouse"]

View File

@@ -14,8 +14,6 @@ from erpnext.manufacturing.doctype.workstation.workstation import (
EXTRA_TEST_RECORD_DEPENDENCIES = ["Warehouse"]
make_test_records("Workstation")
class UnitTestWorkstation(UnitTestCase):
"""