refactor(test): make price list - more test records

This commit is contained in:
ruthra kumar
2025-06-20 16:19:32 +05:30
parent 92f0175e91
commit 97b922f9f1

View File

@@ -242,6 +242,55 @@ class ERPNextTestSuite(unittest.TestCase):
"selling": 1,
"currency": "INR",
},
{
"buying": 1,
"currency": "INR",
"doctype": "Price List",
"enabled": 1,
"price_not_uom_dependant": 1,
"price_list_name": "_Test Price List",
"selling": 1,
},
{
"buying": 1,
"currency": "INR",
"doctype": "Price List",
"enabled": 1,
"price_list_name": "_Test Price List 2",
"selling": 1,
},
{
"buying": 1,
"currency": "INR",
"doctype": "Price List",
"enabled": 1,
"price_list_name": "_Test Price List India",
"selling": 1,
},
{
"buying": 1,
"currency": "USD",
"doctype": "Price List",
"enabled": 1,
"price_list_name": "_Test Price List Rest of the World",
"selling": 1,
},
{
"buying": 0,
"currency": "USD",
"doctype": "Price List",
"enabled": 1,
"price_list_name": "_Test Selling Price List",
"selling": 1,
},
{
"buying": 1,
"currency": "USD",
"doctype": "Price List",
"enabled": 1,
"price_list_name": "_Test Buying Price List",
"selling": 0,
},
]
cls.price_list = []
for x in records: