Skip to content

Commit 208175a

Browse files
committed
test(tui): isolate tab bar widget checks
1 parent 2b7936c commit 208175a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_tui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ async def test_guards_pause_toggle() -> None:
10751075
async def test_tab_bar_activate() -> None:
10761076
from airlock.tui.widgets.tab_bar import TabBar
10771077

1078-
app = AirlockApp()
1078+
app = AirlockApp(test_harness=True)
10791079
async with app.run_test(size=(120, 40)) as _pilot:
10801080
tab_bar = app.query_one("#tab-bar", TabBar)
10811081
assert tab_bar._active == "overview"
@@ -1090,7 +1090,7 @@ async def test_tab_bar_activate() -> None:
10901090
async def test_tab_bar_update_badge() -> None:
10911091
from airlock.tui.widgets.tab_bar import TabBar
10921092

1093-
app = AirlockApp()
1093+
app = AirlockApp(test_harness=True)
10941094
async with app.run_test(size=(120, 40)) as pilot:
10951095
tab_bar = app.query_one("#tab-bar", TabBar)
10961096

0 commit comments

Comments
 (0)