diff options
| author | historia <historiavg@proton.me> | 2026-09-01 14:32:05 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-09-01 14:32:05 -0400 |
| commit | 6cfcd564c0684c52618235e6366f4a81c02b9a5b (patch) | |
| tree | 55321760a8103bc6b5d79489fac4135a60e6e3ba /app/tests/test_converter.py | |
| parent | dc6e7cd43029da62dabe2513fb5aa8a34df1bd6d (diff) | |
| download | tts-audiobook-generator-6cfcd564c0684c52618235e6366f4a81c02b9a5b.tar.gz | |
slop refactor/dedup
Diffstat (limited to 'app/tests/test_converter.py')
| -rw-r--r-- | app/tests/test_converter.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/tests/test_converter.py b/app/tests/test_converter.py index 41b9cad..0b0eb0d 100644 --- a/app/tests/test_converter.py +++ b/app/tests/test_converter.py @@ -38,6 +38,12 @@ class SanitizeFilenameTests(unittest.TestCase): def test_empty_falls_back(self): self.assertEqual(AudiobookConverter._sanitize_filename("///"), "chapter") + def test_windows_reserved_device_names_are_suffixed(self): + for name in ("CON", "nul", "COM1", "lpt2"): + result = AudiobookConverter._sanitize_filename(name) + self.assertNotEqual(result.upper(), name.upper()) + self.assertTrue(result.startswith("chapter_"), result) + class ConfigurationValidationTests(unittest.TestCase): def test_invalid_voice_mode_rejected(self): |
