[small fixes] frozen customer testcase
This commit is contained in:
parent
4c53931363
commit
c0cee82727
@ -6,7 +6,7 @@ import frappe
|
|||||||
from frappe.model.naming import make_autoname
|
from frappe.model.naming import make_autoname
|
||||||
from frappe import _, msgprint, throw
|
from frappe import _, msgprint, throw
|
||||||
import frappe.defaults
|
import frappe.defaults
|
||||||
from frappe.utils import flt, cint,
|
from frappe.utils import flt, cint, cstr
|
||||||
from frappe.desk.reportview import build_match_conditions
|
from frappe.desk.reportview import build_match_conditions
|
||||||
from erpnext.utilities.transaction_base import TransactionBase
|
from erpnext.utilities.transaction_base import TransactionBase
|
||||||
from erpnext.utilities.address_and_contact import load_address_and_contact
|
from erpnext.utilities.address_and_contact import load_address_and_contact
|
||||||
|
@ -68,6 +68,9 @@ class TestCustomer(unittest.TestCase):
|
|||||||
frappe.rename_doc("Customer", "_Test Customer 1 Renamed", "_Test Customer 1")
|
frappe.rename_doc("Customer", "_Test Customer 1 Renamed", "_Test Customer 1")
|
||||||
|
|
||||||
def test_freezed_customer(self):
|
def test_freezed_customer(self):
|
||||||
|
make_test_records("Customer")
|
||||||
|
make_test_records("Item")
|
||||||
|
|
||||||
frappe.db.set_value("Customer", "_Test Customer", "is_frozen", 1)
|
frappe.db.set_value("Customer", "_Test Customer", "is_frozen", 1)
|
||||||
|
|
||||||
from erpnext.selling.doctype.sales_order.test_sales_order import make_sales_order
|
from erpnext.selling.doctype.sales_order.test_sales_order import make_sales_order
|
||||||
|
Loading…
Reference in New Issue
Block a user