chore: add test to check null result
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
parent
5cd5d03038
commit
5a4251bce8
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue