()
| 12 | |
| 13 | @pytest.mark.skip |
| 14 | def test_line_data(): |
| 15 | fig, ax = plt.subplots() |
| 16 | ax.plot(D["x1"], D["y1"]) |
| 17 | renderer = run_fig(fig) |
| 18 | for xi, xf, yi, yf in zip( |
| 19 | renderer.plotly_fig["data"][0]["x"], |
| 20 | D["x1"], |
| 21 | renderer.plotly_fig["data"][0]["y"], |
| 22 | D["y1"], |
| 23 | ): |
| 24 | assert xi == xf, ( |
| 25 | str(renderer.plotly_fig["data"][0]["x"]) + " is not " + str(D["x1"]) |
| 26 | ) |
| 27 | assert yi == yf, ( |
| 28 | str(renderer.plotly_fig["data"][0]["y"]) + " is not " + str(D["y1"]) |
| 29 | ) |
| 30 | |
| 31 | |
| 32 | @pytest.mark.skip |