chore(tests): remove noop ad-hoc record creation

This commit is contained in:
David
2024-10-16 13:26:23 +02:00
parent a671fe13d4
commit ac5e449592
9 changed files with 6 additions and 35 deletions

View File

@@ -6,7 +6,6 @@ import json
import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
from frappe.tests.utils import make_test_records
from frappe.utils import flt
from erpnext.accounts.party import get_due_date
@@ -32,10 +31,6 @@ class UnitTestCustomer(UnitTestCase):
class TestCustomer(IntegrationTestCase):
def setUp(self):
if not frappe.get_value("Item", "_Test Item"):
make_test_records("Item")
def tearDown(self):
set_credit_limit("_Test Customer", "_Test Company", 0)
@@ -205,8 +200,6 @@ class TestCustomer(IntegrationTestCase):
frappe.db.rollback()
def test_freezed_customer(self):
make_test_records("Item")
frappe.db.set_value("Customer", "_Test Customer", "is_frozen", 1)
from erpnext.selling.doctype.sales_order.test_sales_order import make_sales_order
@@ -230,8 +223,6 @@ class TestCustomer(IntegrationTestCase):
frappe.delete_doc("Customer", customer.name)
def test_disabled_customer(self):
make_test_records("Item")
frappe.db.set_value("Customer", "_Test Customer", "disabled", 1)
from erpnext.selling.doctype.sales_order.test_sales_order import make_sales_order