MCPcopy Index your code
hub / github.com/plotly/dash / test_required_props

Function test_required_props

tests/unit/development/test_generate_class.py:115–122  ·  view source on GitHub ↗
(component_written_class)

Source from the content-addressed store, hash-verified

113
114
115def test_required_props(component_written_class):
116 with pytest.raises(Exception):
117 component_written_class()
118 component_written_class(id="test")
119 with pytest.raises(Exception):
120 component_written_class(id="test", lahlah="test")
121 with pytest.raises(Exception):
122 component_written_class(children="test")
123
124
125def test_attrs_match_forbidden_props(component_class):

Callers

nothing calls this directly

Calls 1

component_written_classFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…