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

Function test_insert

tests/test_node_list.py:38–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38async def test_insert():
39 nodes = NodeList()
40 widget1 = Widget()
41 widget2 = Widget()
42 widget3 = Widget()
43 nodes._append(widget1)
44 nodes._append(widget3)
45 nodes._insert(1, widget2)
46 assert list(nodes) == [widget1, widget2, widget3]
47
48
49async def test_truthy():

Callers

nothing calls this directly

Calls 4

_appendMethod · 0.95
_insertMethod · 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…