mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-18 02:55:20 +00:00
chore(tests): move to compact, human readable, commentable toml layout for test records
This commit is contained in:
@@ -1,64 +0,0 @@
|
||||
[
|
||||
{
|
||||
"customer_group": "_Test Customer Group",
|
||||
"customer_name": "_Test Customer With Template",
|
||||
"customer_type": "Individual",
|
||||
"doctype": "Customer",
|
||||
"territory": "_Test Territory"
|
||||
},
|
||||
{
|
||||
"customer_group": "_Test Customer Group",
|
||||
"customer_name": "_Test Customer P",
|
||||
"customer_type": "Individual",
|
||||
"doctype": "Customer",
|
||||
"territory": "_Test Territory"
|
||||
},
|
||||
{
|
||||
"customer_group": "_Test Customer Group",
|
||||
"customer_name": "_Test Customer",
|
||||
"customer_type": "Individual",
|
||||
"doctype": "Customer",
|
||||
"territory": "_Test Territory"
|
||||
},
|
||||
{
|
||||
"customer_group": "_Test Customer Group",
|
||||
"customer_name": "_Test Customer 1",
|
||||
"customer_type": "Individual",
|
||||
"doctype": "Customer",
|
||||
"territory": "_Test Territory"
|
||||
},
|
||||
{
|
||||
"customer_group": "_Test Customer Group",
|
||||
"customer_name": "_Test Customer 2",
|
||||
"customer_type": "Individual",
|
||||
"doctype": "Customer",
|
||||
"territory": "_Test Territory"
|
||||
},
|
||||
{
|
||||
"customer_group": "_Test Customer Group",
|
||||
"customer_name": "_Test Customer 3",
|
||||
"customer_type": "Individual",
|
||||
"doctype": "Customer",
|
||||
"territory": "_Test Territory"
|
||||
},
|
||||
{
|
||||
"customer_group": "_Test Customer Group",
|
||||
"customer_name": "_Test Customer USD",
|
||||
"customer_type": "Individual",
|
||||
"doctype": "Customer",
|
||||
"territory": "_Test Territory",
|
||||
"default_currency": "USD",
|
||||
"accounts": [{
|
||||
"company": "_Test Company",
|
||||
"account": "_Test Receivable USD - _TC"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"customer_group": "_Test Customer Group",
|
||||
"customer_name": "_Test Customer With Tax Category",
|
||||
"customer_type": "Individual",
|
||||
"doctype": "Customer",
|
||||
"territory": "_Test Territory",
|
||||
"tax_category": "_Test Tax Category 1"
|
||||
}
|
||||
]
|
||||
54
erpnext/selling/doctype/customer/test_records.toml
Normal file
54
erpnext/selling/doctype/customer/test_records.toml
Normal file
@@ -0,0 +1,54 @@
|
||||
[[Customer]]
|
||||
customer_group = "_Test Customer Group"
|
||||
customer_name = "_Test Customer With Template"
|
||||
customer_type = "Individual"
|
||||
territory = "_Test Territory"
|
||||
|
||||
[[Customer]]
|
||||
customer_group = "_Test Customer Group"
|
||||
customer_name = "_Test Customer P"
|
||||
customer_type = "Individual"
|
||||
territory = "_Test Territory"
|
||||
|
||||
[[Customer]]
|
||||
customer_group = "_Test Customer Group"
|
||||
customer_name = "_Test Customer"
|
||||
customer_type = "Individual"
|
||||
territory = "_Test Territory"
|
||||
|
||||
[[Customer]]
|
||||
customer_group = "_Test Customer Group"
|
||||
customer_name = "_Test Customer 1"
|
||||
customer_type = "Individual"
|
||||
territory = "_Test Territory"
|
||||
|
||||
[[Customer]]
|
||||
customer_group = "_Test Customer Group"
|
||||
customer_name = "_Test Customer 2"
|
||||
customer_type = "Individual"
|
||||
territory = "_Test Territory"
|
||||
|
||||
[[Customer]]
|
||||
customer_group = "_Test Customer Group"
|
||||
customer_name = "_Test Customer 3"
|
||||
customer_type = "Individual"
|
||||
territory = "_Test Territory"
|
||||
|
||||
[[Customer]]
|
||||
customer_group = "_Test Customer Group"
|
||||
customer_name = "_Test Customer USD"
|
||||
customer_type = "Individual"
|
||||
territory = "_Test Territory"
|
||||
default_currency = "USD"
|
||||
[[Customer.accounts]]
|
||||
company = "_Test Company"
|
||||
account = "_Test Receivable USD - _TC"
|
||||
|
||||
|
||||
[[Customer]]
|
||||
customer_group = "_Test Customer Group"
|
||||
customer_name = "_Test Customer With Tax Category"
|
||||
customer_type = "Individual"
|
||||
territory = "_Test Territory"
|
||||
tax_category = "_Test Tax Category 1"
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
[
|
||||
{
|
||||
"doctype": "Industry Type",
|
||||
"industry": "_Test Industry"
|
||||
},
|
||||
{
|
||||
"doctype": "Industry Type",
|
||||
"industry": "_Test Industry 1"
|
||||
}
|
||||
]
|
||||
6
erpnext/selling/doctype/industry_type/test_records.toml
Normal file
6
erpnext/selling/doctype/industry_type/test_records.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[["Industry Type"]]
|
||||
industry = "_Test Industry"
|
||||
|
||||
[["Industry Type"]]
|
||||
industry = "_Test Industry 1"
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
[
|
||||
]
|
||||
@@ -1,20 +0,0 @@
|
||||
[
|
||||
{
|
||||
"doctype": "Product Bundle",
|
||||
"new_item_code": "_Test Product Bundle Item",
|
||||
"items": [
|
||||
{
|
||||
"doctype": "Product Bundle Item",
|
||||
"item_code": "_Test Item",
|
||||
"parentfield": "items",
|
||||
"qty": 5.0
|
||||
},
|
||||
{
|
||||
"doctype": "Product Bundle Item",
|
||||
"item_code": "_Test Item Home Desktop 100",
|
||||
"parentfield": "items",
|
||||
"qty": 2.0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
15
erpnext/selling/doctype/product_bundle/test_records.toml
Normal file
15
erpnext/selling/doctype/product_bundle/test_records.toml
Normal file
@@ -0,0 +1,15 @@
|
||||
[["Product Bundle"]]
|
||||
new_item_code = "_Test Product Bundle Item"
|
||||
[["Product Bundle".items]]
|
||||
doctype = "Product Bundle Item"
|
||||
item_code = "_Test Item"
|
||||
parentfield = "items"
|
||||
qty = 5.0
|
||||
|
||||
[["Product Bundle".items]]
|
||||
doctype = "Product Bundle Item"
|
||||
item_code = "_Test Item Home Desktop 100"
|
||||
parentfield = "items"
|
||||
qty = 2.0
|
||||
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
[
|
||||
{
|
||||
"company": "_Test Company",
|
||||
"conversion_rate": 1.0,
|
||||
"currency": "INR",
|
||||
"party_name": "_Test Customer",
|
||||
"customer_group": "_Test Customer Group",
|
||||
"customer_name": "_Test Customer",
|
||||
"doctype": "Quotation",
|
||||
"base_grand_total": 1000.0,
|
||||
"grand_total": 1000.0,
|
||||
"order_type": "Sales",
|
||||
"plc_conversion_rate": 1.0,
|
||||
"price_list_currency": "INR",
|
||||
"items": [
|
||||
{
|
||||
"base_amount": 1000.0,
|
||||
"base_rate": 100.0,
|
||||
"description": "CPU",
|
||||
"doctype": "Quotation Item",
|
||||
"item_code": "_Test Item Home Desktop 100",
|
||||
"item_name": "CPU",
|
||||
"parentfield": "items",
|
||||
"qty": 10.0,
|
||||
"rate": 100.0,
|
||||
"uom": "_Test UOM 1",
|
||||
"stock_uom": "_Test UOM 1",
|
||||
"conversion_factor": 1.0
|
||||
}
|
||||
],
|
||||
"quotation_to": "Customer",
|
||||
"selling_price_list": "_Test Price List",
|
||||
"territory": "_Test Territory",
|
||||
"transaction_date": "2013-02-21",
|
||||
"valid_till": "2013-03-21"
|
||||
}
|
||||
]
|
||||
32
erpnext/selling/doctype/quotation/test_records.toml
Normal file
32
erpnext/selling/doctype/quotation/test_records.toml
Normal file
@@ -0,0 +1,32 @@
|
||||
[[Quotation]]
|
||||
company = "_Test Company"
|
||||
conversion_rate = 1.0
|
||||
currency = "INR"
|
||||
party_name = "_Test Customer"
|
||||
customer_group = "_Test Customer Group"
|
||||
customer_name = "_Test Customer"
|
||||
base_grand_total = 1000.0
|
||||
grand_total = 1000.0
|
||||
order_type = "Sales"
|
||||
plc_conversion_rate = 1.0
|
||||
price_list_currency = "INR"
|
||||
quotation_to = "Customer"
|
||||
selling_price_list = "_Test Price List"
|
||||
territory = "_Test Territory"
|
||||
transaction_date = "2013-02-21"
|
||||
valid_till = "2013-03-21"
|
||||
[[Quotation.items]]
|
||||
base_amount = 1000.0
|
||||
base_rate = 100.0
|
||||
description = "CPU"
|
||||
doctype = "Quotation Item"
|
||||
item_code = "_Test Item Home Desktop 100"
|
||||
item_name = "CPU"
|
||||
parentfield = "items"
|
||||
qty = 10.0
|
||||
rate = 100.0
|
||||
uom = "_Test UOM 1"
|
||||
stock_uom = "_Test UOM 1"
|
||||
conversion_factor = 1.0
|
||||
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
[
|
||||
{
|
||||
"advance_paid": 0.0,
|
||||
"company": "_Test Company",
|
||||
"conversion_rate": 1.0,
|
||||
"currency": "INR",
|
||||
"customer": "_Test Customer",
|
||||
"customer_group": "_Test Customer Group",
|
||||
"customer_name": "_Test Customer",
|
||||
"doctype": "Sales Order",
|
||||
"base_grand_total": 1000.0,
|
||||
"grand_total": 1000.0,
|
||||
"naming_series": "_T-Sales Order-",
|
||||
"order_type": "Sales",
|
||||
"plc_conversion_rate": 1.0,
|
||||
"price_list_currency": "INR",
|
||||
"items": [
|
||||
{
|
||||
"base_amount": 1000.0,
|
||||
"base_rate": 100.0,
|
||||
"description": "CPU",
|
||||
"doctype": "Sales Order Item",
|
||||
"item_code": "_Test Item",
|
||||
"item_name": "_Test Item 1",
|
||||
"delivery_date": "2013-02-23",
|
||||
"parentfield": "items",
|
||||
"qty": 10.0,
|
||||
"rate": 100.0,
|
||||
"warehouse": "_Test Warehouse - _TC",
|
||||
"stock_uom": "_Test UOM",
|
||||
"conversion_factor": 1.0,
|
||||
"uom": "_Test UOM"
|
||||
}
|
||||
],
|
||||
"selling_price_list": "_Test Price List",
|
||||
"territory": "_Test Territory",
|
||||
"transaction_date": "2013-02-21"
|
||||
}
|
||||
]
|
||||
34
erpnext/selling/doctype/sales_order/test_records.toml
Normal file
34
erpnext/selling/doctype/sales_order/test_records.toml
Normal file
@@ -0,0 +1,34 @@
|
||||
[["Sales Order"]]
|
||||
advance_paid = 0.0
|
||||
company = "_Test Company"
|
||||
conversion_rate = 1.0
|
||||
currency = "INR"
|
||||
customer = "_Test Customer"
|
||||
customer_group = "_Test Customer Group"
|
||||
customer_name = "_Test Customer"
|
||||
base_grand_total = 1000.0
|
||||
grand_total = 1000.0
|
||||
naming_series = "_T-Sales Order-"
|
||||
order_type = "Sales"
|
||||
plc_conversion_rate = 1.0
|
||||
price_list_currency = "INR"
|
||||
selling_price_list = "_Test Price List"
|
||||
territory = "_Test Territory"
|
||||
transaction_date = "2013-02-21"
|
||||
[["Sales Order".items]]
|
||||
base_amount = 1000.0
|
||||
base_rate = 100.0
|
||||
description = "CPU"
|
||||
doctype = "Sales Order Item"
|
||||
item_code = "_Test Item"
|
||||
item_name = "_Test Item 1"
|
||||
delivery_date = "2013-02-23"
|
||||
parentfield = "items"
|
||||
qty = 10.0
|
||||
rate = 100.0
|
||||
warehouse = "_Test Warehouse - _TC"
|
||||
stock_uom = "_Test UOM"
|
||||
conversion_factor = 1.0
|
||||
uom = "_Test UOM"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user