mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 10:24:48 +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):
|
def test_make_purchase_invoice_with_terms(self):
|
||||||
po = create_purchase_order(do_not_save=True)
|
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"})
|
po.update({"payment_terms_template": "_Test Payment Term Template"})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user