refactor(test): pos invoice tests are almost deterministic

This commit is contained in:
ruthra kumar
2025-11-15 12:25:15 +05:30
parent 524118e108
commit d69d2c374f
2 changed files with 57 additions and 75 deletions

View File

@@ -145,13 +145,6 @@ class ERPNextTestSuite(unittest.TestCase):
records = load_test_records_for(doctype)
cls.globalTestRecords[doctype] = records[doctype]
@classmethod
def truncate_make_item_price(cls, record):
frappe.db.truncate("Item Price")
item_price = frappe.get_doc(record)
item_price.insert()
return item_price
@classmethod
def make_presets(cls):
from frappe.desk.page.setup_wizard.install_fixtures import update_genders, update_salutations