mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix failing test
This commit is contained in:
parent
1c366a46bd
commit
55862e8aa9
@ -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=']')
|
||||
|
Loading…
x
Reference in New Issue
Block a user