test: reject the same Material Request item twice in one supplier selection

This commit is contained in:
Mihir Kandoi
2026-08-01 09:11:37 +05:30
parent 99d56cc850
commit 8ffe5ba420

View File

@@ -1382,6 +1382,13 @@ class TestMaterialRequest(ERPNextTestSuite):
self.assertRaises(frappe.ValidationError, make_purchase_orders_by_supplier, mr.name, [])
self.assertRaises(
frappe.ValidationError,
make_purchase_orders_by_supplier,
mr.name,
[row, row | {"supplier": "_Test Supplier 1"}],
)
def create_item_with_default_supplier(item_code, supplier):
item = create_item(item_code)