From 45f7599eee9bc8f8060dd434e75ae85e058e8392 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 16 Aug 2023 09:13:45 +0530 Subject: [PATCH] ... --- src/calibre/db/tests/notes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/calibre/db/tests/notes.py b/src/calibre/db/tests/notes.py index 9be2f902ad..6c785ae59d 100644 --- a/src/calibre/db/tests/notes.py +++ b/src/calibre/db/tests/notes.py @@ -55,6 +55,10 @@ def test_notes_api(self: 'NotesTest'): self.ae(cache.get_notes_resource(h1)['data'], b'resource1') self.ae(cache.get_notes_resource(h2)['data'], b'resource2') + +def test_cache_api(self): + cache, notes = self.create_notes_db() + class NotesTest(BaseTest): ae = BaseTest.assertEqual @@ -65,4 +69,5 @@ class NotesTest(BaseTest): return cache, cache.backend.notes def test_notes(self): + test_cache_api(self) test_notes_api(self)