mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
fix(test): validate exception without website item
This commit is contained in:
committed by
marination
parent
86832fb7fe
commit
b88d5d135e
@@ -139,9 +139,7 @@ class TestQuotation(FrappeTestCase):
|
|||||||
quotation = frappe.copy_doc(test_records[0])
|
quotation = frappe.copy_doc(test_records[0])
|
||||||
quotation.order_type = 'Shopping Cart'
|
quotation.order_type = 'Shopping Cart'
|
||||||
quotation.valid_till = getdate()
|
quotation.valid_till = getdate()
|
||||||
quotation.insert()
|
self.assertRaises(frappe.ValidationError, quotation.validate)
|
||||||
quotation.submit()
|
|
||||||
self.assertRaises(frappe.ValidationError, make_sales_order, quotation.name)
|
|
||||||
|
|
||||||
def test_create_quotation_with_margin(self):
|
def test_create_quotation_with_margin(self):
|
||||||
from erpnext.selling.doctype.quotation.quotation import make_sales_order
|
from erpnext.selling.doctype.quotation.quotation import make_sales_order
|
||||||
|
|||||||
Reference in New Issue
Block a user