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

Function test_add_one

tests/test_node_list.py:12–16  ·  view source on GitHub ↗

Does adding a node to the node list report as having one item?

()

Source from the content-addressed store, hash-verified

10
11
12async def test_add_one():
13 """Does adding a node to the node list report as having one item?"""
14 nodes = NodeList()
15 nodes._append(Widget())
16 assert len(nodes) == 1
17
18
19async def test_length_hint():

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…