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

Class VisibleTester

tests/test_visible.py:12–27  ·  view source on GitHub ↗

An app for testing visibility changes.

Source from the content-addressed store, hash-verified

10 """
11
12 class VisibleTester(App[None]):
13 """An app for testing visibility changes."""
14
15 CSS = """
16 Widget {
17 height: 1fr;
18 }
19 .hidden {
20 visibility: hidden;
21 }
22 """
23
24 def compose(self) -> ComposeResult:
25 yield VerticalScroll(
26 Widget(id="keep"), Widget(id="hide-via-code"), Widget(id="hide-via-css")
27 )
28
29 async with VisibleTester().run_test() as pilot:
30 assert pilot.app.query_one("#keep").visible is True

Callers 1

test_visibility_changesFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_visibility_changesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…