mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-11 22:38:25 +00:00
refactor(buying): correct broken test case test_make_purchase_invoice_with_terms
This commit is contained in:
@@ -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"})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user