Folder support, Custom theme support, Boiler Plate Code support

This commit is contained in:
Alexander R.
2026-07-29 00:51:54 +00:00
parent 0559f7549a
commit 4aa62722c6
108 changed files with 3020 additions and 152 deletions
+20
View File
@@ -0,0 +1,20 @@
import asyncio
from src.tui.app import TactiTermTUI
from textual.widgets import OptionList
async def test_theme_popup():
app = TactiTermTUI()
async with app.run_test() as pilot:
print("Call action_cycle_theme()...")
app.action_cycle_theme()
await pilot.pause(0.2)
main_box = app.query_one("#main-container")
print("Is show-theme-menu in classes:", main_box.has_class("show-theme-menu"))
theme_list = app.query_one("#theme_list_popup", OptionList)
print("Theme list option count:", theme_list.option_count)
print("Focused widget ID:", getattr(app.focused, "id", None))
if __name__ == "__main__":
asyncio.run(test_theme_popup())