Fix failing test

This commit is contained in:
Kovid Goyal 2021-06-28 20:31:11 +05:30
parent 1c366a46bd
commit 55862e8aa9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -805,8 +805,10 @@ class WritingTest(BaseTest):
self.assertEqual([1, 3], [x['id'] for x in results])
results = cache.search_annotations('"changed"', annotation_type='bookmark')
self.assertEqual([1], [x['id'] for x in results])
results = cache.search_annotations('"Change"')
results = cache.search_annotations('"Changed"') # changed and change stem differently in english and other euro languages
self.assertEqual([1, 3], [x['id'] for x in results])
results = cache.search_annotations('"SOMe"')
self.assertEqual([3], [x['id'] for x in results])
results = cache.search_annotations('"change"', use_stemming=False)
self.assertFalse(results)
results = cache.search_annotations('"bookmark1"', highlight_start='[', highlight_end=']')