refactor(buying): correct broken test case test_make_purchase_invoice_with_terms

This commit is contained in:
Shllokkk
2026-02-19 13:22:33 +05:30
parent 85c8296548
commit 531112e364

View File

@@ -544,7 +544,8 @@ class TestPurchaseOrder(IntegrationTestCase):
def test_make_purchase_invoice_with_terms(self):
po = create_purchase_order(do_not_save=True)
self.assertRaises(frappe.ValidationError, make_pi_from_po, po.name)
with self.assertRaises(frappe.ValidationError):
make_pi_from_po(po.name)
po.update({"payment_terms_template": "_Test Payment Term Template"})