MCPcopy
hub / github.com/Textualize/textual / SwitchApp

Class SwitchApp

tests/test_switch.py:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6 """Regression test for https://github.com/Textualize/textual/issues/2366"""
7
8 class SwitchApp(App[None]):
9 def compose(self) -> ComposeResult:
10 yield Switch()
11
12 async def on_click(self) -> None:
13 raise AssertionError(
14 "The app should never receive a click event when Switch is clicked."
15 )
16
17 async with SwitchApp().run_test() as pilot:
18 await pilot.click(Switch)

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…