mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Skip legacy db test when python sqlite3 module does not have FTS support
This commit is contained in:
parent
1f253580b5
commit
655c9c950c
@ -344,6 +344,14 @@ class LegacyTest(BaseTest):
|
||||
|
||||
def test_legacy_adding_books(self): # {{{
|
||||
'Test various adding/deleting books methods'
|
||||
import sqlite3
|
||||
con = sqlite3.connect(":memory:")
|
||||
try:
|
||||
con.execute("create virtual table recipe using fts5(name, ingredients)")
|
||||
except Exception:
|
||||
self.skipTest('python sqlite3 module does not have FTS5 support')
|
||||
con.close()
|
||||
del con
|
||||
from calibre.ebooks.metadata.book.base import Metadata
|
||||
from calibre.ptempfile import TemporaryFile
|
||||
legacy, old = self.init_legacy(self.cloned_library), self.init_old(self.cloned_library)
|
||||
|
Loading…
x
Reference in New Issue
Block a user