diff --git a/erpnext/accounts/doctype/tax_rule/tax_rule.py b/erpnext/accounts/doctype/tax_rule/tax_rule.py index 1c0c0a3c1d6..f122e41ef70 100644 --- a/erpnext/accounts/doctype/tax_rule/tax_rule.py +++ b/erpnext/accounts/doctype/tax_rule/tax_rule.py @@ -62,9 +62,6 @@ class TaxRule(Document): use_for_shopping_cart: DF.Check # end: auto-generated types - def __setup__(self): - self.flags.ignore_these_exceptions_in_test = [ConflictingTaxRule] - def validate(self): self.validate_tax_template() self.validate_from_to_dates("from_date", "to_date") diff --git a/erpnext/stock/doctype/item_attribute/item_attribute.py b/erpnext/stock/doctype/item_attribute/item_attribute.py index 04421d6292e..3c10c0018e7 100644 --- a/erpnext/stock/doctype/item_attribute/item_attribute.py +++ b/erpnext/stock/doctype/item_attribute/item_attribute.py @@ -37,9 +37,6 @@ class ItemAttribute(Document): to_range: DF.Float # end: auto-generated types - def __setup__(self): - self.flags.ignore_these_exceptions_in_test = [InvalidItemAttributeValueError] - def validate(self): frappe.flags.attribute_values = None self.validate_numeric()