mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-01 07:37:04 +00:00
chore(tests): move to compact, human readable, commentable toml layout for test records
This commit is contained in:
@@ -1,68 +0,0 @@
|
||||
[
|
||||
{
|
||||
"doctype": "Asset Category",
|
||||
"asset_category_name": "Equipment",
|
||||
"total_number_of_depreciations": 3,
|
||||
"frequency_of_depreciation": 3,
|
||||
"accounts": [
|
||||
{
|
||||
"company_name": "_Test Company",
|
||||
"fixed_asset_account": "_Test Fixed Asset - _TC",
|
||||
"accumulated_depreciation_account": "_Test Accumulated Depreciations - _TC",
|
||||
"depreciation_expense_account": "_Test Depreciations - _TC"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"doctype": "Location",
|
||||
"location_name": "Test Location"
|
||||
},
|
||||
{
|
||||
"doctype": "Role",
|
||||
"role_name": "Technician"
|
||||
},
|
||||
{
|
||||
"doctype": "User",
|
||||
"email": "marcus@abc.com",
|
||||
"first_name": "marcus@abc.com",
|
||||
"new_password": "password",
|
||||
"roles": [{"doctype": "Has Role", "role": "Technician"}]
|
||||
},
|
||||
{
|
||||
"doctype": "User",
|
||||
"email": "thalia@abc.com",
|
||||
"first_name": "thalia@abc.com",
|
||||
"new_password": "password",
|
||||
"roles": [{"doctype": "Has Role", "role": "Technician"}]
|
||||
},
|
||||
{
|
||||
"doctype": "User",
|
||||
"email": "mathias@abc.com",
|
||||
"first_name": "mathias@abc.com",
|
||||
"new_password": "password",
|
||||
"roles": [{"doctype": "Has Role", "role": "Technician"}]
|
||||
},
|
||||
{
|
||||
"doctype": "Asset Maintenance Team",
|
||||
"maintenance_manager": "marcus@abc.com",
|
||||
"maintenance_team_name": "Team Awesome",
|
||||
"company": "_Test Company",
|
||||
"maintenance_team_members": [
|
||||
{"team_member": "marcus@abc.com", "full_name": "marcus@abc.com", "maintenance_role": "Technician"},
|
||||
{"team_member": "thalia@abc.com", "full_name": "thalia@abc.com", "maintenance_role": "Technician"},
|
||||
{"team_member": "mathias@abc.com", "full_name": "mathias@abc.com", "maintenance_role": "Technician"}
|
||||
]
|
||||
},
|
||||
{
|
||||
"doctype": "Item",
|
||||
"item_code": "Photocopier",
|
||||
"item_name": "Photocopier",
|
||||
"item_group": "All Item Groups",
|
||||
"company": "_Test Company",
|
||||
"is_fixed_asset": 1,
|
||||
"is_stock_item": 0,
|
||||
"asset_category": "Equipment",
|
||||
"auto_create_assets": 1,
|
||||
"asset_naming_series": "ABC.###"
|
||||
}
|
||||
]
|
||||
75
erpnext/assets/doctype/asset_maintenance/test_records.toml
Normal file
75
erpnext/assets/doctype/asset_maintenance/test_records.toml
Normal file
@@ -0,0 +1,75 @@
|
||||
[["Asset Category"]]
|
||||
asset_category_name = "Equipment"
|
||||
total_number_of_depreciations = 3
|
||||
frequency_of_depreciation = 3
|
||||
[["Asset Category".accounts]]
|
||||
company_name = "_Test Company"
|
||||
fixed_asset_account = "_Test Fixed Asset - _TC"
|
||||
accumulated_depreciation_account = "_Test Accumulated Depreciations - _TC"
|
||||
depreciation_expense_account = "_Test Depreciations - _TC"
|
||||
|
||||
|
||||
[[Location]]
|
||||
location_name = "Test Location"
|
||||
|
||||
[[Role]]
|
||||
role_name = "Technician"
|
||||
|
||||
[[User]]
|
||||
email = "marcus@abc.com"
|
||||
first_name = "marcus@abc.com"
|
||||
new_password = "password"
|
||||
[[User.roles]]
|
||||
doctype = "Has Role"
|
||||
role = "Technician"
|
||||
|
||||
|
||||
[[User]]
|
||||
email = "thalia@abc.com"
|
||||
first_name = "thalia@abc.com"
|
||||
new_password = "password"
|
||||
[[User.roles]]
|
||||
doctype = "Has Role"
|
||||
role = "Technician"
|
||||
|
||||
|
||||
[[User]]
|
||||
email = "mathias@abc.com"
|
||||
first_name = "mathias@abc.com"
|
||||
new_password = "password"
|
||||
[[User.roles]]
|
||||
doctype = "Has Role"
|
||||
role = "Technician"
|
||||
|
||||
|
||||
[["Asset Maintenance Team"]]
|
||||
maintenance_manager = "marcus@abc.com"
|
||||
maintenance_team_name = "Team Awesome"
|
||||
company = "_Test Company"
|
||||
[["Asset Maintenance Team".maintenance_team_members]]
|
||||
team_member = "marcus@abc.com"
|
||||
full_name = "marcus@abc.com"
|
||||
maintenance_role = "Technician"
|
||||
|
||||
[["Asset Maintenance Team".maintenance_team_members]]
|
||||
team_member = "thalia@abc.com"
|
||||
full_name = "thalia@abc.com"
|
||||
maintenance_role = "Technician"
|
||||
|
||||
[["Asset Maintenance Team".maintenance_team_members]]
|
||||
team_member = "mathias@abc.com"
|
||||
full_name = "mathias@abc.com"
|
||||
maintenance_role = "Technician"
|
||||
|
||||
|
||||
[[Item]]
|
||||
item_code = "Photocopier"
|
||||
item_name = "Photocopier"
|
||||
item_group = "All Item Groups"
|
||||
company = "_Test Company"
|
||||
is_fixed_asset = 1
|
||||
is_stock_item = 0
|
||||
asset_category = "Equipment"
|
||||
auto_create_assets = 1
|
||||
asset_naming_series = "ABC.###"
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
[
|
||||
{
|
||||
"doctype": "Location",
|
||||
"location_name": "Test Location Area",
|
||||
"is_group": 1,
|
||||
"is_container": 1
|
||||
},
|
||||
{
|
||||
"doctype": "Location",
|
||||
"location_name": "Basil Farm",
|
||||
"location": "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"point_type\":\"circle\",\"radius\":884.5625420736483},\"geometry\":{\"type\":\"Point\",\"coordinates\":[72.875834,19.100566]}}]}",
|
||||
"parent_location": "Test Location Area",
|
||||
"parent": "Test Location Area",
|
||||
"is_group": 1,
|
||||
"is_container": 1
|
||||
},
|
||||
{
|
||||
"doctype": "Location",
|
||||
"location_name": "Division 1",
|
||||
"location": "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"point_type\":\"circle\",\"radius\":542.3424997060739},\"geometry\":{\"type\":\"Point\",\"coordinates\":[72.852359,19.11557]}}]}",
|
||||
"parent_location": "Basil Farm",
|
||||
"parent": "Basil Farm",
|
||||
"is_group": 1,
|
||||
"is_container": 1
|
||||
},
|
||||
{
|
||||
"doctype": "Location",
|
||||
"location_name": "Field 1",
|
||||
"location": "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[72.846758,19.118287],[72.846758,19.121206],[72.850535,19.121206],[72.850535,19.118287],[72.846758,19.118287]]]}}]}",
|
||||
"parent_location": "Division 1",
|
||||
"parent": "Division 1",
|
||||
"is_group": 1,
|
||||
"is_container": 1
|
||||
},
|
||||
{
|
||||
"doctype": "Location",
|
||||
"location_name": "Block 1",
|
||||
"location": "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[72.921495,19.073313],[72.924929,19.068121],[72.934713,19.06585],[72.929392,19.05579],[72.94158,19.056926],[72.951365,19.095213],[72.921495,19.073313]]]}}]}",
|
||||
"parent_location": "Field 1",
|
||||
"parent": "Field 1",
|
||||
"is_group": 0,
|
||||
"is_container": 1
|
||||
}
|
||||
]
|
||||
37
erpnext/assets/doctype/location/test_records.toml
Normal file
37
erpnext/assets/doctype/location/test_records.toml
Normal file
@@ -0,0 +1,37 @@
|
||||
[[Location]]
|
||||
location_name = "Test Location Area"
|
||||
is_group = 1
|
||||
is_container = 1
|
||||
|
||||
[[Location]]
|
||||
location_name = "Basil Farm"
|
||||
location = "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"point_type\":\"circle\",\"radius\":884.5625420736483},\"geometry\":{\"type\":\"Point\",\"coordinates\":[72.875834,19.100566]}}]}"
|
||||
parent_location = "Test Location Area"
|
||||
parent = "Test Location Area"
|
||||
is_group = 1
|
||||
is_container = 1
|
||||
|
||||
[[Location]]
|
||||
location_name = "Division 1"
|
||||
location = "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"point_type\":\"circle\",\"radius\":542.3424997060739},\"geometry\":{\"type\":\"Point\",\"coordinates\":[72.852359,19.11557]}}]}"
|
||||
parent_location = "Basil Farm"
|
||||
parent = "Basil Farm"
|
||||
is_group = 1
|
||||
is_container = 1
|
||||
|
||||
[[Location]]
|
||||
location_name = "Field 1"
|
||||
location = "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[72.846758,19.118287],[72.846758,19.121206],[72.850535,19.121206],[72.850535,19.118287],[72.846758,19.118287]]]}}]}"
|
||||
parent_location = "Division 1"
|
||||
parent = "Division 1"
|
||||
is_group = 1
|
||||
is_container = 1
|
||||
|
||||
[[Location]]
|
||||
location_name = "Block 1"
|
||||
location = "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[72.921495,19.073313],[72.924929,19.068121],[72.934713,19.06585],[72.929392,19.05579],[72.94158,19.056926],[72.951365,19.095213],[72.921495,19.073313]]]}}]}"
|
||||
parent_location = "Field 1"
|
||||
parent = "Field 1"
|
||||
is_group = 0
|
||||
is_container = 1
|
||||
|
||||
Reference in New Issue
Block a user