fix: Failing test, sider and linter
- Remove unused imports - fix test `test_product_list_attribute_filter_builder`
This commit is contained in:
parent
1d7f313b92
commit
2933cf243a
@ -175,9 +175,7 @@ class TestProductDataEngine(unittest.TestCase):
|
|||||||
|
|
||||||
filter_engine = ProductFiltersBuilder()
|
filter_engine = ProductFiltersBuilder()
|
||||||
attribute_filter = filter_engine.get_attribute_filters()[0]
|
attribute_filter = filter_engine.get_attribute_filters()[0]
|
||||||
attributes = attribute_filter.item_attribute_values
|
attribute_values = attribute_filter.item_attribute_values
|
||||||
|
|
||||||
attribute_values = [d.attribute_value for d in attributes]
|
|
||||||
|
|
||||||
self.assertEqual(attribute_filter.name, "Test Size")
|
self.assertEqual(attribute_filter.name, "Test Size")
|
||||||
self.assertGreater(len(attribute_values), 0)
|
self.assertGreater(len(attribute_values), 0)
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
import unittest
|
|
||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
from erpnext.controllers.item_variant import create_variant
|
from erpnext.controllers.item_variant import create_variant
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
# License: GNU General Public License v3. See license.txt
|
# License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import itertools
|
|
||||||
import json
|
import json
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
@ -18,11 +17,9 @@ from frappe.utils import (
|
|||||||
getdate,
|
getdate,
|
||||||
now_datetime,
|
now_datetime,
|
||||||
nowtime,
|
nowtime,
|
||||||
random_string,
|
|
||||||
strip,
|
strip,
|
||||||
)
|
)
|
||||||
from frappe.utils.html_utils import clean_html
|
from frappe.utils.html_utils import clean_html
|
||||||
from frappe.website.utils import clear_cache
|
|
||||||
|
|
||||||
import erpnext
|
import erpnext
|
||||||
from erpnext.controllers.item_variant import (
|
from erpnext.controllers.item_variant import (
|
||||||
@ -32,10 +29,7 @@ from erpnext.controllers.item_variant import (
|
|||||||
make_variant_item_code,
|
make_variant_item_code,
|
||||||
validate_item_variant_attributes,
|
validate_item_variant_attributes,
|
||||||
)
|
)
|
||||||
from erpnext.setup.doctype.item_group.item_group import (
|
from erpnext.setup.doctype.item_group.item_group import invalidate_cache_for
|
||||||
get_parent_item_groups,
|
|
||||||
invalidate_cache_for,
|
|
||||||
)
|
|
||||||
from erpnext.stock.doctype.item_default.item_default import ItemDefault
|
from erpnext.stock.doctype.item_default.item_default import ItemDefault
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user