Merge pull request #46591 from ruthra-kumar/revert_to_json_for_test_records

Revert "chore(tests): move to compact, human readable, commentable to…
This commit is contained in:
ruthra kumar
2025-03-19 16:50:14 +05:30
committed by GitHub
123 changed files with 3452 additions and 3045 deletions

View File

@@ -0,0 +1,192 @@
[
{
"items": [
{
"amount": 5000.0,
"doctype": "BOM Item",
"item_code": "_Test Serialized Item With Series",
"parentfield": "items",
"qty": 1.0,
"rate": 5000.0,
"uom": "_Test UOM",
"stock_uom": "_Test UOM",
"source_warehouse": "_Test Warehouse - _TC",
"include_item_in_manufacturing": 1
},
{
"amount": 2000.0,
"doctype": "BOM Item",
"item_code": "_Test Item 2",
"parentfield": "items",
"qty": 2.0,
"rate": 1000.0,
"uom": "_Test UOM",
"stock_uom": "_Test UOM",
"source_warehouse": "_Test Warehouse - _TC",
"include_item_in_manufacturing": 1
}
],
"docstatus": 1,
"doctype": "BOM",
"currency": "USD",
"is_active": 1,
"is_default": 1,
"item": "_Test Item Home Desktop Manufactured",
"company": "_Test Company",
"quantity": 1.0
},
{
"scrap_items":[
{
"amount": 2000.0,
"doctype": "BOM Scrap Item",
"item_code": "_Test Item Home Desktop 100",
"parentfield": "scrap_items",
"stock_qty": 1.0,
"rate": 2000.0,
"stock_uom": "_Test UOM"
}
],
"items": [
{
"amount": 10000.0,
"doctype": "BOM Item",
"item_code": "_Test Item",
"parentfield": "items",
"qty": 1.0,
"rate": 5000.0,
"uom": "_Test UOM",
"stock_uom": "_Test UOM",
"source_warehouse": "_Test Warehouse - _TC",
"include_item_in_manufacturing": 1
},
{
"amount": 2000.0,
"doctype": "BOM Item",
"item_code": "_Test Item Home Desktop 100",
"parentfield": "items",
"qty": 2.0,
"rate": 1000.0,
"uom": "_Test UOM",
"stock_uom": "_Test UOM",
"source_warehouse": "_Test Warehouse - _TC",
"include_item_in_manufacturing": 1
}
],
"docstatus": 1,
"doctype": "BOM",
"is_active": 1,
"is_default": 1,
"currency": "USD",
"item": "_Test FG Item",
"quantity": 1.0
},
{
"operations": [
{
"operation": "_Test Operation 1",
"description": "_Test",
"workstation": "_Test Workstation 1",
"hour_rate": 100,
"time_in_mins": 60,
"operating_cost": 100
}
],
"items": [
{
"amount": 5000.0,
"doctype": "BOM Item",
"item_code": "_Test Item",
"parentfield": "items",
"qty": 1.0,
"rate": 5000.0,
"uom": "_Test UOM",
"stock_uom": "_Test UOM",
"source_warehouse": "_Test Warehouse - _TC",
"include_item_in_manufacturing": 1
},
{
"amount": 3000.0,
"bom_no": "BOM-_Test Item Home Desktop Manufactured-001",
"doctype": "BOM Item",
"item_code": "_Test Item Home Desktop Manufactured",
"parentfield": "items",
"qty": 3.0,
"rate": 1000.0,
"uom": "_Test UOM",
"stock_uom": "_Test UOM",
"source_warehouse": "_Test Warehouse - _TC",
"include_item_in_manufacturing": 1
}
],
"docstatus": 1,
"doctype": "BOM",
"is_active": 1,
"is_default": 1,
"currency": "USD",
"conversion_rate": 60,
"company": "_Test Company",
"item": "_Test FG Item 2",
"quantity": 1.0,
"with_operations": 1
},
{
"operations": [
{
"operation": "_Test Operation 1",
"description": "_Test",
"workstation": "_Test Workstation 1",
"time_in_mins": 60,
"operating_cost": 140
}
],
"items": [
{
"amount": 5000.0,
"doctype": "BOM Item",
"item_code": "_Test Item",
"parentfield": "items",
"qty": 2.0,
"rate": 3000.0,
"uom": "_Test UOM",
"stock_uom": "_Test UOM",
"source_warehouse": "_Test Warehouse - _TC",
"include_item_in_manufacturing": 1
}
],
"docstatus": 1,
"doctype": "BOM",
"is_active": 1,
"is_default": 1,
"currency": "USD",
"item": "_Test Variant Item",
"quantity": 1.0,
"with_operations": 1
},
{
"items": [
{
"amount": 5000.0,
"doctype": "BOM Item",
"item_code": "_Test Item",
"parentfield": "items",
"qty": 2.0,
"rate": 3000.0,
"uom": "_Test UOM",
"stock_uom": "_Test UOM",
"source_warehouse": "_Test Warehouse - _TC",
"include_item_in_manufacturing": 1
}
],
"docstatus": 1,
"doctype": "BOM",
"is_active": 1,
"is_default": 1,
"currency": "USD",
"item": "_Test Variant Item",
"quantity": 1.0,
"with_operations": 0,
"fg_based_operating_cost": 1,
"operating_cost_per_bom_quantity": 140
}
]

View File

@@ -1,169 +0,0 @@
[[BOM]]
docstatus = 1
currency = "USD"
is_active = 1
is_default = 1
item = "_Test Item Home Desktop Manufactured"
company = "_Test Company"
quantity = 1.0
[[BOM.items]]
amount = 5000.0
doctype = "BOM Item"
item_code = "_Test Serialized Item With Series"
parentfield = "items"
qty = 1.0
rate = 5000.0
uom = "_Test UOM"
stock_uom = "_Test UOM"
source_warehouse = "_Test Warehouse - _TC"
include_item_in_manufacturing = 1
[[BOM.items]]
amount = 2000.0
doctype = "BOM Item"
item_code = "_Test Item 2"
parentfield = "items"
qty = 2.0
rate = 1000.0
uom = "_Test UOM"
stock_uom = "_Test UOM"
source_warehouse = "_Test Warehouse - _TC"
include_item_in_manufacturing = 1
[[BOM]]
docstatus = 1
is_active = 1
is_default = 1
currency = "USD"
item = "_Test FG Item"
quantity = 1.0
[[BOM.scrap_items]]
amount = 2000.0
doctype = "BOM Scrap Item"
item_code = "_Test Item Home Desktop 100"
parentfield = "scrap_items"
stock_qty = 1.0
rate = 2000.0
stock_uom = "_Test UOM"
[[BOM.items]]
amount = 10000.0
doctype = "BOM Item"
item_code = "_Test Item"
parentfield = "items"
qty = 1.0
rate = 5000.0
uom = "_Test UOM"
stock_uom = "_Test UOM"
source_warehouse = "_Test Warehouse - _TC"
include_item_in_manufacturing = 1
[[BOM.items]]
amount = 2000.0
doctype = "BOM Item"
item_code = "_Test Item Home Desktop 100"
parentfield = "items"
qty = 2.0
rate = 1000.0
uom = "_Test UOM"
stock_uom = "_Test UOM"
source_warehouse = "_Test Warehouse - _TC"
include_item_in_manufacturing = 1
[[BOM]]
docstatus = 1
is_active = 1
is_default = 1
currency = "USD"
conversion_rate = 60
company = "_Test Company"
item = "_Test FG Item 2"
quantity = 1.0
with_operations = 1
[[BOM.operations]]
operation = "_Test Operation 1"
description = "_Test"
workstation = "_Test Workstation 1"
hour_rate = 100
time_in_mins = 60
operating_cost = 100
[[BOM.items]]
amount = 5000.0
doctype = "BOM Item"
item_code = "_Test Item"
parentfield = "items"
qty = 1.0
rate = 5000.0
uom = "_Test UOM"
stock_uom = "_Test UOM"
source_warehouse = "_Test Warehouse - _TC"
include_item_in_manufacturing = 1
[[BOM.items]]
amount = 3000.0
bom_no = "BOM-_Test Item Home Desktop Manufactured-001"
doctype = "BOM Item"
item_code = "_Test Item Home Desktop Manufactured"
parentfield = "items"
qty = 3.0
rate = 1000.0
uom = "_Test UOM"
stock_uom = "_Test UOM"
source_warehouse = "_Test Warehouse - _TC"
include_item_in_manufacturing = 1
[[BOM]]
docstatus = 1
is_active = 1
is_default = 1
currency = "USD"
item = "_Test Variant Item"
quantity = 1.0
with_operations = 1
[[BOM.operations]]
operation = "_Test Operation 1"
description = "_Test"
workstation = "_Test Workstation 1"
time_in_mins = 60
operating_cost = 140
[[BOM.items]]
amount = 5000.0
doctype = "BOM Item"
item_code = "_Test Item"
parentfield = "items"
qty = 2.0
rate = 3000.0
uom = "_Test UOM"
stock_uom = "_Test UOM"
source_warehouse = "_Test Warehouse - _TC"
include_item_in_manufacturing = 1
[[BOM]]
docstatus = 1
is_active = 1
is_default = 1
currency = "USD"
item = "_Test Variant Item"
quantity = 1.0
with_operations = 0
fg_based_operating_cost = 1
operating_cost_per_bom_quantity = 140
[[BOM.items]]
amount = 5000.0
doctype = "BOM Item"
item_code = "_Test Item"
parentfield = "items"
qty = 2.0
rate = 3000.0
uom = "_Test UOM"
stock_uom = "_Test UOM"
source_warehouse = "_Test Warehouse - _TC"
include_item_in_manufacturing = 1

View File

@@ -0,0 +1,7 @@
[
{
"doctype": "Operation",
"name": "_Test Operation 1",
"workstation": "_Test Workstation 1"
}
]

View File

@@ -1,4 +0,0 @@
[[Operation]]
name = "_Test Operation 1"
workstation = "_Test Workstation 1"

View File

@@ -0,0 +1,12 @@
[
{
"bom_no": "BOM-_Test FG Item-001",
"company": "_Test Company",
"doctype": "Work Order",
"fg_warehouse": "_Test Warehouse 1 - _TC",
"production_item": "_Test FG Item",
"qty": 10.0,
"stock_uom": "_Test UOM",
"wip_warehouse": "_Test Warehouse - _TC"
}
]

View File

@@ -1,9 +0,0 @@
[["Work Order"]]
bom_no = "BOM-_Test FG Item-001"
company = "_Test Company"
fg_warehouse = "_Test Warehouse 1 - _TC"
production_item = "_Test FG Item"
qty = 10.0
stock_uom = "_Test UOM"
wip_warehouse = "_Test Warehouse - _TC"

View File

@@ -0,0 +1,19 @@
[
{
"doctype": "Workstation",
"name": "_Test Workstation 1",
"workstation_name": "_Test Workstation 1",
"warehouse": "_Test warehouse - _TC",
"hour_rate_labour": 25,
"hour_rate_electricity": 25,
"hour_rate_consumable": 25,
"hour_rate_rent": 25,
"holiday_list": "_Test Holiday List",
"working_hours": [
{
"start_time": "10:00:00",
"end_time": "20:00:00"
}
]
}
]

View File

@@ -1,14 +0,0 @@
[[Workstation]]
name = "_Test Workstation 1"
workstation_name = "_Test Workstation 1"
warehouse = "_Test warehouse - _TC"
hour_rate_labour = 25
hour_rate_electricity = 25
hour_rate_consumable = 25
hour_rate_rent = 25
holiday_list = "_Test Holiday List"
[[Workstation.working_hours]]
start_time = "10:00:00"
end_time = "20:00:00"