diff options
| author | historia <historiavg@proton.me> | 2026-08-27 22:40:58 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-27 22:40:58 -0400 |
| commit | eb465fb2a972b6b07c4b427f940b186745ce6d90 (patch) | |
| tree | 416e0a706da7ede4f273458a2e243ac22393d606 /app/tests/test_hub.py | |
| parent | 4c3ba1b68107208fe32c223588576a7bdca19a12 (diff) | |
| download | tts-audiobook-generator-eb465fb2a972b6b07c4b427f940b186745ce6d90.tar.gz | |
fix: can't check checkboxes in tts model page
Diffstat (limited to 'app/tests/test_hub.py')
| -rw-r--r-- | app/tests/test_hub.py | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/app/tests/test_hub.py b/app/tests/test_hub.py index daa4abd..fbede75 100644 --- a/app/tests/test_hub.py +++ b/app/tests/test_hub.py @@ -364,20 +364,24 @@ class HubMenuTests(unittest.TestCase): self.assertIn("qwen3_tts_1_7b_customvoice_q8_0", text) self.assertIn("5. Go to Generate Audiobooks.", text) # The "no need to manually start/stop" sentence sits on its own - # indented line below the step-5 paragraph. - self.assertIn("stop it.\nThere is no need to manually " + # indented line below the step-5 paragraph (one leading space + # beyond the 2-space indent, lining up with the step text). + self.assertIn("stop it.\n There is no need to manually " "start/stop servers.", text) self.assertIn("6. Generated audiobooks (m4b, mp3, etc.) will " "output here:", text) # The three folder paths are their own indented, white-bold - # ("input") rows; the numbered steps start at the margin. They - # resolve live from the converter module, so a Settings change - # this session is reflected. - self.assertIn(([(str(hub.converter_mod.BOOKS_FOLDER), "input")], 1), + # ("input") rows; the numbered steps start at the margin and + # the indented rows carry a leading space of their own, so + # they line up with the step text after the "N. " prefixes. + # They resolve live from the converter module, so a Settings + # change this session is reflected. + self.assertIn(([(" " + str(hub.converter_mod.BOOKS_FOLDER), + "input")], 1), items) + self.assertIn(([(" " + str(hub.common.VOICES_DIR), "input")], 1), items) - self.assertIn(([(str(hub.common.VOICES_DIR), "input")], 1), items) - self.assertIn(([(str(hub.converter_mod.AUDIOBOOKS_FOLDER), "input")], - 1), items) + self.assertIn(([(" " + str(hub.converter_mod.AUDIOBOOKS_FOLDER), + "input")], 1), items) self.assertEqual(items[0][1], 0) |
