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

Function test_truthy

tests/test_node_list.py:49–54  ·  view source on GitHub ↗

Does a node list act as a truthy object?

()

Source from the content-addressed store, hash-verified

47
48
49async def test_truthy():
50 """Does a node list act as a truthy object?"""
51 nodes = NodeList()
52 assert not bool(nodes)
53 nodes._append(Widget())
54 assert bool(nodes)
55
56
57async def test_contains():

Callers

nothing calls this directly

Calls 3

_appendMethod · 0.95
NodeListClass · 0.90
WidgetClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…