From 0b98fbe960e375bfa999ec9807bfc46fd93f2ec7 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 16 Oct 2024 15:01:03 +0200 Subject: [PATCH] test: remove no-op flags in preparation of cleaning upstream --- erpnext/accounts/doctype/tax_rule/tax_rule.py | 3 --- erpnext/stock/doctype/item_attribute/item_attribute.py | 3 --- 2 files changed, 6 deletions(-) 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()