Revert "chore(tests): move to compact, human readable, commentable toml layout for test records"

This reverts commit bb917207c2.
This commit is contained in:
ruthra kumar
2025-03-18 17:27:01 +05:30
parent e1ba08a28d
commit 54d96f34f2
123 changed files with 3451 additions and 3045 deletions

View File

@@ -0,0 +1 @@
[]

View File

@@ -0,0 +1,17 @@
[
{
"brand": "_Test Brand",
"doctype": "Brand"
},
{
"brand": "_Test Brand With Item Defaults",
"doctype": "Brand",
"brand_defaults": [{
"company": "_Test Company",
"expense_account": "_Test Account Cost for Goods Sold - _TC",
"income_account": "_Test Account Sales - _TC",
"buying_cost_center": "_Test Cost Center - _TC",
"selling_cost_center": "_Test Cost Center - _TC"
}]
}
]

View File

@@ -1,13 +0,0 @@
[[Brand]]
brand = "_Test Brand"
[[Brand]]
brand = "_Test Brand With Item Defaults"
[[Brand.brand_defaults]]
company = "_Test Company"
expense_account = "_Test Account Cost for Goods Sold - _TC"
income_account = "_Test Account Sales - _TC"
buying_cost_center = "_Test Cost Center - _TC"
selling_cost_center = "_Test Cost Center - _TC"

View File

@@ -0,0 +1,109 @@
[
{
"abbr": "_TC",
"company_name": "_Test Company",
"country": "India",
"default_currency": "INR",
"doctype": "Company",
"domain": "Manufacturing",
"chart_of_accounts": "Standard",
"default_holiday_list": "_Test Holiday List",
"enable_perpetual_inventory": 0,
"allow_account_creation_against_child_company": 1
},
{
"abbr": "_TC1",
"company_name": "_Test Company 1",
"country": "United States",
"default_currency": "USD",
"doctype": "Company",
"domain": "Retail",
"chart_of_accounts": "Standard",
"default_holiday_list": "_Test Holiday List",
"enable_perpetual_inventory": 0
},
{
"abbr": "_TC2",
"company_name": "_Test Company 2",
"default_currency": "EUR",
"country": "Germany",
"doctype": "Company",
"domain": "Retail",
"chart_of_accounts": "Standard",
"default_holiday_list": "_Test Holiday List",
"enable_perpetual_inventory": 0
},
{
"abbr": "_TC3",
"company_name": "_Test Company 3",
"is_group": 1,
"country": "Pakistan",
"default_currency": "INR",
"doctype": "Company",
"domain": "Manufacturing",
"chart_of_accounts": "Standard",
"default_holiday_list": "_Test Holiday List",
"enable_perpetual_inventory": 0
},
{
"abbr": "_TC4",
"company_name": "_Test Company 4",
"parent_company": "_Test Company 3",
"is_group": 1,
"country": "Pakistan",
"default_currency": "INR",
"doctype": "Company",
"domain": "Manufacturing",
"chart_of_accounts": "Standard",
"default_holiday_list": "_Test Holiday List",
"enable_perpetual_inventory": 0
},
{
"abbr": "_TC5",
"company_name": "_Test Company 5",
"parent_company": "_Test Company 4",
"country": "Pakistan",
"default_currency": "INR",
"doctype": "Company",
"domain": "Manufacturing",
"chart_of_accounts": "Standard",
"default_holiday_list": "_Test Holiday List",
"enable_perpetual_inventory": 0
},
{
"abbr": "TCP1",
"company_name": "_Test Company with perpetual inventory",
"country": "India",
"default_currency": "INR",
"doctype": "Company",
"domain": "Manufacturing",
"chart_of_accounts": "Standard",
"enable_perpetual_inventory": 1,
"default_holiday_list": "_Test Holiday List"
},
{
"abbr": "_TC6",
"company_name": "_Test Company 6",
"is_group": 1,
"country": "India",
"default_currency": "INR",
"doctype": "Company",
"domain": "Manufacturing",
"chart_of_accounts": "Standard",
"default_holiday_list": "_Test Holiday List",
"enable_perpetual_inventory": 0
},
{
"abbr": "_TC7",
"company_name": "_Test Company 7",
"parent_company": "_Test Company 6",
"is_group": 1,
"country": "United States",
"default_currency": "USD",
"doctype": "Company",
"domain": "Manufacturing",
"chart_of_accounts": "Standard",
"default_holiday_list": "_Test Holiday List",
"enable_perpetual_inventory": 0
}
]

View File

@@ -1,98 +0,0 @@
[[Company]]
abbr = "_TC"
company_name = "_Test Company"
country = "India"
default_currency = "INR"
domain = "Manufacturing"
chart_of_accounts = "Standard"
default_holiday_list = "_Test Holiday List"
enable_perpetual_inventory = 0
allow_account_creation_against_child_company = 1
[[Company]]
abbr = "_TC1"
company_name = "_Test Company 1"
country = "United States"
default_currency = "USD"
domain = "Retail"
chart_of_accounts = "Standard"
default_holiday_list = "_Test Holiday List"
enable_perpetual_inventory = 0
[[Company]]
abbr = "_TC2"
company_name = "_Test Company 2"
default_currency = "EUR"
country = "Germany"
domain = "Retail"
chart_of_accounts = "Standard"
default_holiday_list = "_Test Holiday List"
enable_perpetual_inventory = 0
[[Company]]
abbr = "_TC3"
company_name = "_Test Company 3"
is_group = 1
country = "Pakistan"
default_currency = "INR"
domain = "Manufacturing"
chart_of_accounts = "Standard"
default_holiday_list = "_Test Holiday List"
enable_perpetual_inventory = 0
[[Company]]
abbr = "_TC4"
company_name = "_Test Company 4"
parent_company = "_Test Company 3"
is_group = 1
country = "Pakistan"
default_currency = "INR"
domain = "Manufacturing"
chart_of_accounts = "Standard"
default_holiday_list = "_Test Holiday List"
enable_perpetual_inventory = 0
[[Company]]
abbr = "_TC5"
company_name = "_Test Company 5"
parent_company = "_Test Company 4"
country = "Pakistan"
default_currency = "INR"
domain = "Manufacturing"
chart_of_accounts = "Standard"
default_holiday_list = "_Test Holiday List"
enable_perpetual_inventory = 0
[[Company]]
abbr = "TCP1"
company_name = "_Test Company with perpetual inventory"
country = "India"
default_currency = "INR"
domain = "Manufacturing"
chart_of_accounts = "Standard"
enable_perpetual_inventory = 1
default_holiday_list = "_Test Holiday List"
[[Company]]
abbr = "_TC6"
company_name = "_Test Company 6"
is_group = 1
country = "India"
default_currency = "INR"
domain = "Manufacturing"
chart_of_accounts = "Standard"
default_holiday_list = "_Test Holiday List"
enable_perpetual_inventory = 0
[[Company]]
abbr = "_TC7"
company_name = "_Test Company 7"
parent_company = "_Test Company 6"
is_group = 1
country = "United States"
default_currency = "USD"
domain = "Manufacturing"
chart_of_accounts = "Standard"
default_holiday_list = "_Test Holiday List"
enable_perpetual_inventory = 0

View File

@@ -0,0 +1,56 @@
[
{
"doctype": "Currency Exchange",
"date": "2016-01-01",
"exchange_rate": 60.0,
"from_currency": "USD",
"to_currency": "INR",
"for_buying": 1,
"for_selling": 0
},
{
"doctype": "Currency Exchange",
"date": "2016-01-01",
"exchange_rate": 0.773,
"from_currency": "USD",
"to_currency": "EUR",
"for_buying": 0,
"for_selling": 1
},
{
"doctype": "Currency Exchange",
"date": "2016-01-01",
"exchange_rate": 0.0167,
"from_currency": "INR",
"to_currency": "USD",
"for_buying": 1,
"for_selling": 0
},
{
"doctype": "Currency Exchange",
"date": "2016-01-10",
"exchange_rate": 65.1,
"from_currency": "USD",
"to_currency": "INR",
"for_buying": 1,
"for_selling": 0
},
{
"doctype": "Currency Exchange",
"date": "2016-01-30",
"exchange_rate": 62.9,
"from_currency": "USD",
"to_currency": "INR",
"for_buying": 1,
"for_selling": 1
},
{
"doctype": "Currency Exchange",
"date": "2016-01-10",
"exchange_rate": 65.1,
"from_currency": "INR",
"to_currency": "NGN",
"for_buying": 1,
"for_selling": 1
}
]

View File

@@ -1,48 +0,0 @@
[["Currency Exchange"]]
date = "2016-01-01"
exchange_rate = 60.0
from_currency = "USD"
to_currency = "INR"
for_buying = 1
for_selling = 0
[["Currency Exchange"]]
date = "2016-01-01"
exchange_rate = 0.773
from_currency = "USD"
to_currency = "EUR"
for_buying = 0
for_selling = 1
[["Currency Exchange"]]
date = "2016-01-01"
exchange_rate = 0.0167
from_currency = "INR"
to_currency = "USD"
for_buying = 1
for_selling = 0
[["Currency Exchange"]]
date = "2016-01-10"
exchange_rate = 65.1
from_currency = "USD"
to_currency = "INR"
for_buying = 1
for_selling = 0
[["Currency Exchange"]]
date = "2016-01-30"
exchange_rate = 62.9
from_currency = "USD"
to_currency = "INR"
for_buying = 1
for_selling = 1
[["Currency Exchange"]]
date = "2016-01-10"
exchange_rate = 65.1
from_currency = "INR"
to_currency = "NGN"
for_buying = 1
for_selling = 1

View File

@@ -0,0 +1,14 @@
[
{
"customer_group_name": "_Test Customer Group",
"doctype": "Customer Group",
"is_group": 0,
"parent_customer_group": "All Customer Groups"
},
{
"customer_group_name": "_Test Customer Group 1",
"doctype": "Customer Group",
"is_group": 0,
"parent_customer_group": "All Customer Groups"
}
]

View File

@@ -1,10 +0,0 @@
[["Customer Group"]]
customer_group_name = "_Test Customer Group"
is_group = 0
parent_customer_group = "All Customer Groups"
[["Customer Group"]]
customer_group_name = "_Test Customer Group 1"
is_group = 0
parent_customer_group = "All Customer Groups"

View File

@@ -0,0 +1,4 @@
[
{"doctype":"Department", "department_name":"_Test Department", "company": "_Test Company", "parent_department": "All Departments"},
{"doctype":"Department", "department_name":"_Test Department 1", "company": "_Test Company", "parent_department": "All Departments"}
]

View File

@@ -1,10 +0,0 @@
[[Department]]
department_name = "_Test Department"
company = "_Test Company"
parent_department = "All Departments"
[[Department]]
department_name = "_Test Department 1"
company = "_Test Company"
parent_department = "All Departments"

View File

@@ -0,0 +1 @@
[]

View File

@@ -0,0 +1,38 @@
[
{
"company": "_Test Company",
"date_of_birth": "1980-01-01",
"date_of_joining": "2010-01-01",
"department": "_Test Department - _TC",
"doctype": "Employee",
"first_name": "_Test Employee",
"gender": "Female",
"naming_series": "_T-Employee-",
"status": "Active",
"user_id": "test@example.com"
},
{
"company": "_Test Company",
"date_of_birth": "1980-01-01",
"date_of_joining": "2010-01-01",
"department": "_Test Department 1 - _TC",
"doctype": "Employee",
"first_name": "_Test Employee 1",
"gender": "Male",
"naming_series": "_T-Employee-",
"status": "Active",
"user_id": "test1@example.com"
},
{
"company": "_Test Company",
"date_of_birth": "1980-01-01",
"date_of_joining": "2010-01-01",
"department": "_Test Department 1 - _TC",
"doctype": "Employee",
"first_name": "_Test Employee 2",
"gender": "Male",
"naming_series": "_T-Employee-",
"status": "Active",
"user_id": "test2@example.com"
}
]

View File

@@ -1,33 +0,0 @@
[[Employee]]
company = "_Test Company"
date_of_birth = "1980-01-01"
date_of_joining = "2010-01-01"
department = "_Test Department - _TC"
first_name = "_Test Employee"
gender = "Female"
naming_series = "_T-Employee-"
status = "Active"
user_id = "test@example.com"
[[Employee]]
company = "_Test Company"
date_of_birth = "1980-01-01"
date_of_joining = "2010-01-01"
department = "_Test Department 1 - _TC"
first_name = "_Test Employee 1"
gender = "Male"
naming_series = "_T-Employee-"
status = "Active"
user_id = "test1@example.com"
[[Employee]]
company = "_Test Company"
date_of_birth = "1980-01-01"
date_of_joining = "2010-01-01"
department = "_Test Department 1 - _TC"
first_name = "_Test Employee 2"
gender = "Male"
naming_series = "_T-Employee-"
status = "Active"
user_id = "test2@example.com"

View File

@@ -0,0 +1,22 @@
[
{
"doctype": "Holiday List",
"from_date": "2013-01-01",
"to_date":"2013-12-31",
"holidays": [
{
"description": "New Year",
"holiday_date": "2013-01-01"
},
{
"description": "Republic Day",
"holiday_date": "2013-01-26"
},
{
"description": "Test Holiday",
"holiday_date": "2013-02-01"
}
],
"holiday_list_name": "_Test Holiday List"
}
]

View File

@@ -1,17 +0,0 @@
[["Holiday List"]]
from_date = "2013-01-01"
to_date = "2013-12-31"
holiday_list_name = "_Test Holiday List"
[["Holiday List".holidays]]
description = "New Year"
holiday_date = "2013-01-01"
[["Holiday List".holidays]]
description = "Republic Day"
holiday_date = "2013-01-26"
[["Holiday List".holidays]]
description = "Test Holiday"
holiday_date = "2013-02-01"

View File

@@ -0,0 +1,108 @@
[
{
"doctype": "Item Group",
"is_group": 0,
"item_group_name": "_Test Item Group",
"parent_item_group": "All Item Groups",
"item_group_defaults": [{
"company": "_Test Company",
"buying_cost_center": "_Test Cost Center 2 - _TC",
"selling_cost_center": "_Test Cost Center 2 - _TC",
"default_warehouse": "_Test Warehouse - _TC"
}]
},
{
"doctype": "Item Group",
"is_group": 0,
"item_group_name": "_Test Item Group Desktops",
"parent_item_group": "All Item Groups"
},
{
"doctype": "Item Group",
"is_group": 1,
"item_group_name": "_Test Item Group A",
"parent_item_group": "All Item Groups"
},
{
"doctype": "Item Group",
"is_group": 1,
"item_group_name": "_Test Item Group B",
"parent_item_group": "All Item Groups"
},
{
"doctype": "Item Group",
"is_group": 1,
"item_group_name": "_Test Item Group B - 1",
"parent_item_group": "_Test Item Group B"
},
{
"doctype": "Item Group",
"is_group": 1,
"item_group_name": "_Test Item Group B - 2",
"parent_item_group": "_Test Item Group B"
},
{
"doctype": "Item Group",
"is_group": 0,
"item_group_name": "_Test Item Group B - 3",
"parent_item_group": "_Test Item Group B"
},
{
"doctype": "Item Group",
"is_group": 1,
"item_group_name": "_Test Item Group C",
"parent_item_group": "All Item Groups"
},
{
"doctype": "Item Group",
"is_group": 1,
"item_group_name": "_Test Item Group C - 1",
"parent_item_group": "_Test Item Group C"
},
{
"doctype": "Item Group",
"is_group": 1,
"item_group_name": "_Test Item Group C - 2",
"parent_item_group": "_Test Item Group C"
},
{
"doctype": "Item Group",
"is_group": 1,
"item_group_name": "_Test Item Group D",
"parent_item_group": "All Item Groups"
},
{
"doctype": "Item Group",
"is_group": 1,
"item_group_name": "_Test Item Group Tax Parent",
"parent_item_group": "All Item Groups",
"taxes": [
{
"doctype": "Item Tax",
"parentfield": "taxes",
"item_tax_template": "_Test Account Excise Duty @ 10 - _TC",
"tax_category": ""
},
{
"doctype": "Item Tax",
"parentfield": "taxes",
"item_tax_template": "_Test Account Excise Duty @ 12 - _TC",
"tax_category": "_Test Tax Category 1"
}
]
},
{
"doctype": "Item Group",
"is_group": 0,
"item_group_name": "_Test Item Group Tax Child Override",
"parent_item_group": "_Test Item Group Tax Parent",
"taxes": [
{
"doctype": "Item Tax",
"parentfield": "taxes",
"item_tax_template": "_Test Account Excise Duty @ 15 - _TC",
"tax_category": ""
}
]
}
]

View File

@@ -1,89 +0,0 @@
[["Item Group"]]
is_group = 0
item_group_name = "_Test Item Group"
parent_item_group = "All Item Groups"
[["Item Group".item_group_defaults]]
company = "_Test Company"
buying_cost_center = "_Test Cost Center 2 - _TC"
selling_cost_center = "_Test Cost Center 2 - _TC"
default_warehouse = "_Test Warehouse - _TC"
[["Item Group"]]
is_group = 0
item_group_name = "_Test Item Group Desktops"
parent_item_group = "All Item Groups"
[["Item Group"]]
is_group = 1
item_group_name = "_Test Item Group A"
parent_item_group = "All Item Groups"
[["Item Group"]]
is_group = 1
item_group_name = "_Test Item Group B"
parent_item_group = "All Item Groups"
[["Item Group"]]
is_group = 1
item_group_name = "_Test Item Group B - 1"
parent_item_group = "_Test Item Group B"
[["Item Group"]]
is_group = 1
item_group_name = "_Test Item Group B - 2"
parent_item_group = "_Test Item Group B"
[["Item Group"]]
is_group = 0
item_group_name = "_Test Item Group B - 3"
parent_item_group = "_Test Item Group B"
[["Item Group"]]
is_group = 1
item_group_name = "_Test Item Group C"
parent_item_group = "All Item Groups"
[["Item Group"]]
is_group = 1
item_group_name = "_Test Item Group C - 1"
parent_item_group = "_Test Item Group C"
[["Item Group"]]
is_group = 1
item_group_name = "_Test Item Group C - 2"
parent_item_group = "_Test Item Group C"
[["Item Group"]]
is_group = 1
item_group_name = "_Test Item Group D"
parent_item_group = "All Item Groups"
[["Item Group"]]
is_group = 1
item_group_name = "_Test Item Group Tax Parent"
parent_item_group = "All Item Groups"
[["Item Group".taxes]]
doctype = "Item Tax"
parentfield = "taxes"
item_tax_template = "_Test Account Excise Duty @ 10 - _TC"
tax_category = ""
[["Item Group".taxes]]
doctype = "Item Tax"
parentfield = "taxes"
item_tax_template = "_Test Account Excise Duty @ 12 - _TC"
tax_category = "_Test Tax Category 1"
[["Item Group"]]
is_group = 0
item_group_name = "_Test Item Group Tax Child Override"
parent_item_group = "_Test Item Group Tax Parent"
[["Item Group".taxes]]
doctype = "Item Tax"
parentfield = "taxes"
item_tax_template = "_Test Account Excise Duty @ 15 - _TC"
tax_category = ""

View File

@@ -0,0 +1,5 @@
[
{
"print_heading": "_Test Print Heading"
}
]

View File

@@ -1,3 +0,0 @@
[["Print Heading"]]
print_heading = "_Test Print Heading"

View File

@@ -0,0 +1,6 @@
[
{
"doctype": "Quotation Lost Reason",
"order_lost_reason": "_Test Quotation Lost Reason"
}
]

View File

@@ -1,3 +0,0 @@
[["Quotation Lost Reason"]]
order_lost_reason = "_Test Quotation Lost Reason"

View File

@@ -0,0 +1 @@
[]

View File

@@ -0,0 +1,23 @@
[
{
"doctype": "Sales Person",
"employee": "_T-Employee-00001",
"is_group": 0,
"parent_sales_person": "Sales Team",
"sales_person_name": "_Test Sales Person"
},
{
"doctype": "Sales Person",
"employee": "_T-Employee-00002",
"is_group": 0,
"parent_sales_person": "Sales Team",
"sales_person_name": "_Test Sales Person 1"
},
{
"doctype": "Sales Person",
"employee": "_T-Employee-00003",
"is_group": 0,
"parent_sales_person": "Sales Team",
"sales_person_name": "_Test Sales Person 2"
}
]

View File

@@ -1,18 +0,0 @@
[["Sales Person"]]
employee = "_T-Employee-00001"
is_group = 0
parent_sales_person = "Sales Team"
sales_person_name = "_Test Sales Person"
[["Sales Person"]]
employee = "_T-Employee-00002"
is_group = 0
parent_sales_person = "Sales Team"
sales_person_name = "_Test Sales Person 1"
[["Sales Person"]]
employee = "_T-Employee-00003"
is_group = 0
parent_sales_person = "Sales Team"
sales_person_name = "_Test Sales Person 2"

View File

@@ -0,0 +1,8 @@
[
{
"doctype": "Supplier Group",
"supplier_group_name": "_Test Supplier Group",
"parent_supplier_group": "All Supplier Groups"
}
]

View File

@@ -1,4 +0,0 @@
[["Supplier Group"]]
supplier_group_name = "_Test Supplier Group"
parent_supplier_group = "All Supplier Groups"

View File

@@ -0,0 +1,6 @@
[
{
"terms": "_Test Terms",
"title": "_Test Terms and Conditions"
}
]

View File

@@ -1,4 +0,0 @@
[["Terms and Conditions"]]
terms = "_Test Terms"
title = "_Test Terms and Conditions"

View File

@@ -0,0 +1,32 @@
[
{
"doctype": "Territory",
"is_group": 0,
"parent_territory": "All Territories",
"territory_name": "_Test Territory"
},
{
"doctype": "Territory",
"is_group": 1,
"parent_territory": "All Territories",
"territory_name": "_Test Territory India"
},
{
"doctype": "Territory",
"is_group": 0,
"parent_territory": "_Test Territory India",
"territory_name": "_Test Territory Maharashtra"
},
{
"doctype": "Territory",
"is_group": 0,
"parent_territory": "All Territories",
"territory_name": "_Test Territory Rest Of The World"
},
{
"doctype": "Territory",
"is_group": 0,
"parent_territory": "All Territories",
"territory_name": "_Test Territory United States"
}
]

View File

@@ -1,25 +0,0 @@
[[Territory]]
is_group = 0
parent_territory = "All Territories"
territory_name = "_Test Territory"
[[Territory]]
is_group = 1
parent_territory = "All Territories"
territory_name = "_Test Territory India"
[[Territory]]
is_group = 0
parent_territory = "_Test Territory India"
territory_name = "_Test Territory Maharashtra"
[[Territory]]
is_group = 0
parent_territory = "All Territories"
territory_name = "_Test Territory Rest Of The World"
[[Territory]]
is_group = 0
parent_territory = "All Territories"
territory_name = "_Test Territory United States"

View File

@@ -0,0 +1,11 @@
[
{
"doctype": "UOM",
"must_be_whole_number": 1,
"uom_name": "_Test UOM"
},
{
"doctype": "UOM",
"uom_name": "_Test UOM 1"
}
]

View File

@@ -1,7 +0,0 @@
[[UOM]]
must_be_whole_number = 1
uom_name = "_Test UOM"
[[UOM]]
uom_name = "_Test UOM 1"