mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
upgraded test_runner, now can run multiple tests
This commit is contained in:
@@ -254,13 +254,4 @@ class DocType:
|
||||
sql("update `tabCompany` set company_name = '%s' where name = '%s'" %(newdn,olddn))
|
||||
sql("update `tabSingles` set value = %s where doctype='Global Defaults' and field = 'default_company' and value = %s", (newdn, olddn))
|
||||
if get_defaults('company') == olddn:
|
||||
set_default('company', newdn)
|
||||
|
||||
test_records = [
|
||||
[{
|
||||
"doctype": "Company",
|
||||
"company_name": "_Test Company",
|
||||
"abbr": "_TC",
|
||||
"default_currency": "INR",
|
||||
}],
|
||||
]
|
||||
set_default('company', newdn)
|
||||
10
setup/doctype/company/test_company.py
Normal file
10
setup/doctype/company/test_company.py
Normal file
@@ -0,0 +1,10 @@
|
||||
test_ignore = ["Account"]
|
||||
|
||||
test_records = [
|
||||
[{
|
||||
"doctype": "Company",
|
||||
"company_name": "_Test Company",
|
||||
"abbr": "_TC",
|
||||
"default_currency": "INR",
|
||||
}],
|
||||
]
|
||||
Reference in New Issue
Block a user