chore: add test assertion for global_search

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
Chinmay D. Pai 2020-03-30 10:49:20 +05:30
parent 10e939d012
commit 39df9fc8c0
No known key found for this signature in database
GPG key ID: 75507BE256F40CED

View file

@ -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)