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

Function test_simple_line

tests/test_optional/test_matplotlylib/test_lines.py:19–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18@pytest.mark.skip
19def test_simple_line():
20 fig, ax = plt.subplots()
21 ax.plot(D["x1"], D["y1"], label="simple")
22 renderer = run_fig(fig)
23 for data_no, data_dict in enumerate(renderer.plotly_fig["data"]):
24 d1, d2 = strip_dict_params(
25 data_dict, SIMPLE_LINE["data"][data_no], ignore=["uid"]
26 )
27
28 equivalent, msg = compare_dict(d1, d2)
29 assert equivalent, msg
30 equivalent, msg = compare_dict(renderer.plotly_fig["layout"], SIMPLE_LINE["layout"])
31 assert equivalent, msg
32
33
34@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