diff options
| author | historia <historiavg@proton.me> | 2026-08-18 03:00:16 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-18 03:00:16 -0400 |
| commit | de5b2d9ca7302ade711d9dfb32b2fe8047f55cc2 (patch) | |
| tree | 410f9a0ffd996d2ac14843e8f78947c36ff12d43 /tests | |
| parent | 6d0e740b4225859457109821a4c77feff72c24b5 (diff) | |
| download | tts-audiobook-generator-de5b2d9ca7302ade711d9dfb32b2fe8047f55cc2.tar.gz | |
feat: support .ogg and .flac output
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_audio.py | 6 | ||||
| -rw-r--r-- | tests/test_converter.py | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_audio.py b/tests/test_audio.py index 7e782cc..7116e2b 100644 --- a/tests/test_audio.py +++ b/tests/test_audio.py @@ -90,6 +90,12 @@ class EncodeArgsTests(unittest.TestCase): def test_wav_is_lossless_pcm(self): self.assertEqual(_encode_args("wav"), ["-c:a", "pcm_s16le"]) + def test_ogg_uses_libvorbis(self): + self.assertEqual(_encode_args("ogg"), ["-c:a", "libvorbis", "-b:a", config.AUDIO_BITRATE]) + + def test_flac_is_lossless(self): + self.assertEqual(_encode_args("flac"), ["-c:a", "flac"]) + class M4bContainerArgsTests(unittest.TestCase): def setUp(self): diff --git a/tests/test_converter.py b/tests/test_converter.py index 9c03e30..fce0439 100644 --- a/tests/test_converter.py +++ b/tests/test_converter.py @@ -28,7 +28,7 @@ class ConfigurationValidationTests(unittest.TestCase): def test_unknown_format_rejected(self): with self.assertRaises(ValueError): - AudiobookConverter(output_format="ogg") + AudiobookConverter(output_format="wma") if __name__ == "__main__": |
