test: reject a supplier selection without items

(cherry picked from commit d233fdf198)
This commit is contained in:
Mihir Kandoi
2026-08-01 09:00:12 +05:30
committed by Mergify
parent d6ee5436b8
commit 6096e761b0

View File

@@ -1380,6 +1380,8 @@ class TestMaterialRequest(ERPNextTestSuite):
frappe.ValidationError, make_purchase_orders_by_supplier, mr.name, [row | invalid]
)
self.assertRaises(frappe.ValidationError, make_purchase_orders_by_supplier, mr.name, [])
def create_item_with_default_supplier(item_code, supplier):
item = create_item(item_code)