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

Function component_written_class

tests/unit/development/test_generate_class.py:24–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23@pytest.fixture
24def component_written_class():
25 path = os.path.join(_dir, "metadata_required_test.json")
26 with open(path) as data_file:
27 json_string = data_file.read()
28 required_data = json.JSONDecoder(object_pairs_hook=OrderedDict).decode(
29 json_string
30 )
31
32 return generate_class(
33 typename="TableRequired",
34 props=required_data["props"],
35 description=required_data["description"],
36 namespace="TableComponents",
37 )
38
39
40def test_to_plotly_json(component_class):

Callers 1

test_required_propsFunction · 0.85

Calls 1

generate_classFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…