chore: add test assertion for global_search
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
parent
10e939d012
commit
39df9fc8c0
1 changed files with 2 additions and 0 deletions
|
|
@ -194,3 +194,5 @@ class TestGlobalSearch(unittest.TestCase):
|
|||
results = global_search.web_search(text='manufacturing',
|
||||
scope="manufacturing\" UNION ALL SELECT 1,2,3,4,doctype from __global_search")
|
||||
self.assetTrue(results == [])
|
||||
results = global_search.web_search('manufacturing')
|
||||
self.assertTrue('Manufacturing' in results[0].content)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue