mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 03:39:11 +00:00
upgraded test_runner, now can run multiple tests
This commit is contained in:
@@ -248,15 +248,4 @@ class DocType(TransactionBase):
|
||||
|
||||
#update master_name in doctype account
|
||||
webnotes.conn.sql("""update `tabAccount` set master_name = %s,
|
||||
master_type = 'Customer' where master_name = %s""", (new,old))
|
||||
|
||||
test_records = [
|
||||
[{
|
||||
"doctype": "Customer",
|
||||
"customer_name": "_Test Customer",
|
||||
"customer_type": "Individual",
|
||||
"customer_group": "_Test Customer Group",
|
||||
"territory": "_Test Territory",
|
||||
"company": "_Test Company"
|
||||
}]
|
||||
]
|
||||
master_type = 'Customer' where master_name = %s""", (new,old))
|
||||
10
selling/doctype/customer/test_customer.py
Normal file
10
selling/doctype/customer/test_customer.py
Normal file
@@ -0,0 +1,10 @@
|
||||
test_records = [
|
||||
[{
|
||||
"doctype": "Customer",
|
||||
"customer_name": "_Test Customer",
|
||||
"customer_type": "Individual",
|
||||
"customer_group": "_Test Customer Group",
|
||||
"territory": "_Test Territory",
|
||||
"company": "_Test Company"
|
||||
}]
|
||||
]
|
||||
Reference in New Issue
Block a user