aboutsummaryrefslogtreecommitdiff
path: root/tests/test_converter.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-19 05:25:14 -0400
committerhistoria <historiavg@proton.me>2026-08-19 05:25:14 -0400
commitc2afb9d01b854bb709345c1b33bdba741daceb25 (patch)
tree7317daa34c0e2c4a6d37e88a2c6377cac9b799e5 /tests/test_converter.py
parent94ddbb0634022a6e5209b5221c057228ec3d1418 (diff)
downloadtts-audiobook-generator-c2afb9d01b854bb709345c1b33bdba741daceb25.tar.gz
fix: skip tests if no ebooklib
Diffstat (limited to 'tests/test_converter.py')
-rw-r--r--tests/test_converter.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_converter.py b/tests/test_converter.py
index 737fc06..20ebabc 100644
--- a/tests/test_converter.py
+++ b/tests/test_converter.py
@@ -48,13 +48,12 @@ class ConfigurationValidationTests(unittest.TestCase):
def test_language_defaults_to_config(self):
with patch("converter.converter.QwenTTSClient") as mock_tts:
AudiobookConverter()
- self.assertEqual(mock_tts.call_args.kwargs["language"], "English")
+ self.assertEqual(mock_tts.call_args.kwargs["language"], config.LANGUAGE)
def test_output_format_defaults_to_config(self):
with patch("converter.converter.QwenTTSClient"):
converter = AudiobookConverter()
self.assertEqual(converter.output_format, config.AUDIO_FORMAT)
- self.assertEqual(config.AUDIO_FORMAT, "m4b")
def test_language_normalized_before_tts_client(self):
with patch("converter.converter.QwenTTSClient") as mock_tts: