test: index test should pass without calling function #28771

test: index test should pass without calling function

[skip ci]
This commit is contained in:
Ankush Menat
2021-12-07 15:11:31 +05:30
committed by GitHub
parent ef53eb7fcd
commit ca230e4267

View File

@@ -534,8 +534,6 @@ class TestItem(ERPNextTestCase):
def test_index_creation(self):
"check if index is getting created in db"
from erpnext.stock.doctype.item.item import on_doctype_update
on_doctype_update()
indices = frappe.db.sql("show index from tabItem", as_dict=1)
expected_columns = {"item_code", "item_name", "item_group", "route"}