From bf119f0cf179bbf7d12505fab9d63fedfb8e98a3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 24 May 2021 08:49:24 +0530 Subject: [PATCH] Test all_annotations_for_book() --- src/calibre/db/tests/writing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/db/tests/writing.py b/src/calibre/db/tests/writing.py index 392a513c66..edfca2d997 100644 --- a/src/calibre/db/tests/writing.py +++ b/src/calibre/db/tests/writing.py @@ -791,6 +791,7 @@ class WritingTest(BaseTest): cache.set_annotations_for_book(1, 'moo', annot_list) amap = cache.annotations_map_for_book(1, 'moo') + self.assertEqual(3, len(cache.all_annotations_for_book(1))) self.assertEqual([x[0] for x in annot_list], map_as_list(amap)) self.assertFalse(cache.dirtied_cache) cache.check_dirtied_annotations()