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

Method test_finds_by_dict_id

tests/unit/test_layout.py:53–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 assert find_component("nope", layout=sample_layout) is None
52
53 def test_finds_by_dict_id(self):
54 layout = html.Div([html.Div(id={"type": "item", "index": 0})])
55 assert find_component({"type": "item", "index": 0}, layout=layout) is not None
56
57
58class TestExtractText:

Callers

nothing calls this directly

Calls 1

find_componentFunction · 0.90

Tested by

no test coverage detected