MCPcopy
hub / github.com/plotly/dash / test_finds_by_string_id

Method test_finds_by_string_id

tests/unit/test_layout.py:46–48  ·  view source on GitHub ↗
(self, sample_layout)

Source from the content-addressed store, hash-verified

44
45class TestFindComponent:
46 def test_finds_by_string_id(self, sample_layout):
47 comp = find_component("deep-child", layout=sample_layout)
48 assert comp is not None and comp.id == "deep-child"
49
50 def test_returns_none_for_missing_id(self, sample_layout):
51 assert find_component("nope", layout=sample_layout) is None

Callers

nothing calls this directly

Calls 1

find_componentFunction · 0.90

Tested by

no test coverage detected