mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
chore(tests): remove noop ad-hoc record creation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user