diff options
| author | historia <historiavg@proton.me> | 2026-08-19 05:25:14 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-19 05:25:14 -0400 |
| commit | c2afb9d01b854bb709345c1b33bdba741daceb25 (patch) | |
| tree | 7317daa34c0e2c4a6d37e88a2c6377cac9b799e5 /tests/test_extractors.py | |
| parent | 94ddbb0634022a6e5209b5221c057228ec3d1418 (diff) | |
| download | tts-audiobook-generator-c2afb9d01b854bb709345c1b33bdba741daceb25.tar.gz | |
fix: skip tests if no ebooklib
Diffstat (limited to 'tests/test_extractors.py')
| -rw-r--r-- | tests/test_extractors.py | 4 |
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: |
