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

Function test_horizontal_bar

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

Source from the content-addressed store, hash-verified

38
39@pytest.mark.skip
40def test_horizontal_bar():
41 fig, ax = plt.subplots()
42 ax.barh(bottom=D["bottom"], width=D["width"])
43 renderer = run_fig(fig)
44
45 for data_no, data_dict in enumerate(renderer.plotly_fig["data"]):
46 d1, d2 = strip_dict_params(
47 data_dict, HORIZONTAL_BAR["data"][data_no], ignore=["uid"]
48 )
49
50 equivalent, msg = compare_dict(d1, d2)
51 assert equivalent, msg
52
53 equivalent, msg = compare_dict(
54 renderer.plotly_fig["layout"], HORIZONTAL_BAR["layout"]
55 )
56 assert equivalent, msg
57
58
59@pytest.mark.skip

Callers

nothing calls this directly

Calls 4

run_figFunction · 0.85
strip_dict_paramsFunction · 0.85
compare_dictFunction · 0.85
subplotsMethod · 0.80

Tested by

no test coverage detected