aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_audio.py6
-rw-r--r--tests/test_converter.py2
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__":