MCPcopy Index your code
hub / github.com/plotly/plotly.py / test_vertical_bar

Function test_vertical_bar

tests/test_optional/test_matplotlylib/test_bars.py:20–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19@pytest.mark.skip
20def test_vertical_bar():
21 fig, ax = plt.subplots()
22 ax.bar(left=D["left"], height=D["height"])
23 renderer = run_fig(fig)
24
25 for data_no, data_dict in enumerate(renderer.plotly_fig["data"]):
26 d1, d2 = strip_dict_params(
27 data_dict, VERTICAL_BAR["data"][data_no], ignore=["uid"]
28 )
29
30 equivalent, msg = compare_dict(d1, d2)
31 assert equivalent, msg
32
33 equivalent, msg = compare_dict(
34 renderer.plotly_fig["layout"], VERTICAL_BAR["layout"]
35 )
36 assert equivalent, msg
37
38
39@pytest.mark.skip

Callers

nothing calls this directly

Calls 5

run_figFunction · 0.85
strip_dict_paramsFunction · 0.85
compare_dictFunction · 0.85
subplotsMethod · 0.80
barMethod · 0.45

Tested by

no test coverage detected