From 97b922f9f1d28d6f9e317e3763cda45d5f52c8a6 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Fri, 20 Jun 2025 16:19:32 +0530 Subject: [PATCH] refactor(test): make price list - more test records --- erpnext/tests/utils.py | 49 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/erpnext/tests/utils.py b/erpnext/tests/utils.py index f25eaf7c461..78546581b5b 100644 --- a/erpnext/tests/utils.py +++ b/erpnext/tests/utils.py @@ -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: