diff options
| author | historia <historiavg@proton.me> | 2026-08-31 17:19:27 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-31 17:19:27 -0400 |
| commit | 4bd0282da65db9f118ef5250582ab67079fad538 (patch) | |
| tree | 61983333df69b9cf9efc91f5320fbb51c66fdc97 /app/tests/test_hub.py | |
| parent | 3b109185d642319c2c1870815b25ae1c0ad49445 (diff) | |
| download | tts-audiobook-generator-4bd0282da65db9f118ef5250582ab67079fad538.tar.gz | |
fix: truncate excess spaces on generate audiobooks tui
Diffstat (limited to 'app/tests/test_hub.py')
| -rw-r--r-- | app/tests/test_hub.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/tests/test_hub.py b/app/tests/test_hub.py index a822f1a..ef246ad 100644 --- a/app/tests/test_hub.py +++ b/app/tests/test_hub.py @@ -967,8 +967,12 @@ class ConvertFlowTests(unittest.TestCase): # The model menu was fed from the live query (label, id); ids are # padded so the capability columns line up across entries. A mixed # tts+clone family reads as the "tts" and "clone" columns. - self.assertEqual(self._field("model_id")["choices"], + model_field = self._field("model_id") + self.assertEqual(model_field["choices"], [("higgs tts clone", "higgs")]) + # The padded table lives in the pick menu only: the form row + # collapses its column padding back to the gutter. + self.assertTrue(model_field["compact_label"]) def test_model_menu_lines_the_type_column_up(self): # Ids are padded to the widest id, and every capability word sits @@ -1816,6 +1820,9 @@ class ConvertFlowTests(unittest.TestCase): ("VoiceDesign".ljust(11) + " (design)", "design")]) self.assertEqual({label.index("(") for label, _ in mode_field["choices"]}, {13}) + # The padded table lives in the pick menu only: the form row + # collapses its column padding back to the gutter. + self.assertTrue(mode_field["compact_label"]) speaker_field = self._field("speaker") clone_dir_field = self._field("clone_dir") # The .wav directory browser alerts on the .wavs it lists. |
