tests: fix results being return

This commit is contained in:
Himanshu Warekar 2019-12-03 15:27:10 +05:30
parent 86e1d0367b
commit 65402bc2fa
2 changed files with 2 additions and 2 deletions

View file

@ -80,7 +80,7 @@ class TestGlobalSearch(unittest.TestCase):
make_property_setter(doctype, "repeat_on", "in_global_search", 1, "Int")
global_search.rebuild_for_doctype(doctype)
results = global_search.search('Monthly')
self.assertEqual(len(results), 2)
self.assertEqual(len(results), 3)
def test_delete_doc(self):
self.insert_test_events()

View file

@ -478,7 +478,7 @@ def search(text, start=0, limit=20, doctype=""):
sorted_results.extend([r])
return sorted_results or results
return sorted_results
@frappe.whitelist(allow_guest=True)
def web_search(text, scope=None, start=0, limit=20):