chore: checkpoint app work before firmware sync

This commit is contained in:
Adolfo Reyna
2026-09-07 23:01:26 -04:00
parent e42036a044
commit 59612020bb
20 changed files with 2111 additions and 1218 deletions
+9
View File
@@ -30,6 +30,15 @@ class LiveCaptionsContractTests(unittest.TestCase):
self.assertIn("const char* stop", source)
self.assertNotIn("i2s_controller_", source)
def test_ui_autostarts_and_keeps_only_the_latest_thirty_words(self):
source = (APP / "main" / "Source" / "main.c").read_text()
self.assertIn("#define DISPLAY_WORD_LIMIT 50", source)
self.assertIn("copy_recent_words", source)
self.assertIn("tt_lvgl_toolbar_create_for_app", source)
self.assertNotIn("lv_btn_create", source)
self.assertNotIn("start_button", source)
self.assertIn("xTaskCreate(worker_task", source)
def test_connection_failure_stays_failed_until_user_starts_again(self):
source = (APP / "main" / "Source" / "main.c").read_text()
self.assertIn("CAPTION_FAILED", source)