aboutsummaryrefslogtreecommitdiff
path: root/tests/test_extractors.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_extractors.py')
-rw-r--r--tests/test_extractors.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_extractors.py b/tests/test_extractors.py
index d604351..ae1794c 100644
--- a/tests/test_extractors.py
+++ b/tests/test_extractors.py
@@ -153,6 +153,10 @@ class ExtractBookTests(unittest.TestCase):
self.assertEqual(len(book.sections), 1)
def test_epub_metadata_harvested(self):
+ try:
+ import ebooklib # noqa: F401
+ except ImportError:
+ self.skipTest("ebooklib not installed")
from converter.extractors import extract_book
with tempfile.TemporaryDirectory() as tmp: