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

Function test_remove

tests/test_node_list.py:77–84  ·  view source on GitHub ↗

Can we remove a widget we've added?

()

Source from the content-addressed store, hash-verified

75
76
77async def test_remove():
78 """Can we remove a widget we've added?"""
79 widget = Widget()
80 nodes = NodeList()
81 nodes._append(widget)
82 assert widget in nodes
83 nodes._remove(widget)
84 assert widget not in nodes
85
86
87async def test_clear():

Callers

nothing calls this directly

Calls 4

_appendMethod · 0.95
_removeMethod · 0.95
WidgetClass · 0.90
NodeListClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…