mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
fix: ignore duplicates explicitly
This commit is contained in:
committed by
Ankush Menat
parent
856d3f63b5
commit
9c7df2eec5
@@ -175,7 +175,7 @@ class TestShoppingCart(unittest.TestCase):
|
||||
def create_tax_rule(self):
|
||||
tax_rule = frappe.get_test_records("Tax Rule")[0]
|
||||
try:
|
||||
frappe.get_doc(tax_rule).insert()
|
||||
frappe.get_doc(tax_rule).insert(ignore_if_duplicate=True)
|
||||
except (frappe.DuplicateEntryError, ConflictingTaxRule):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user