chore: add test to check null result

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
Chinmay D. Pai 2020-04-03 09:54:34 +05:30
parent 5cd5d03038
commit 5a4251bce8
No known key found for this signature in database
GPG key ID: 75507BE256F40CED

View file

@ -191,8 +191,6 @@ class TestGlobalSearch(unittest.TestCase):
frappe.db.commit()
results = global_search.web_search('unsubscribe')
self.assertTrue('Unsubscribe' in results[0].content)
results = global_search.web_search(text='open source',
results = global_search.web_search(text='unsubscribe',
scope="manufacturing\" UNION ALL SELECT 1,2,3,4,doctype from __global_search")
self.assertTrue(results == [])
results = global_search.web_search('open source')
self.assertTrue('Open Source' in results[0].content)