Test that serializing a plotly figure works. Args: plotly_fig: The figure to serialize.
(plotly_fig: go.Figure)
| 26 | |
| 27 | |
| 28 | def test_serialize_plotly(plotly_fig: go.Figure): |
| 29 | """Test that serializing a plotly figure works. |
| 30 | |
| 31 | Args: |
| 32 | plotly_fig: The figure to serialize. |
| 33 | """ |
| 34 | value = serialize(plotly_fig) |
| 35 | assert isinstance(value, list) |
| 36 | assert value == serialize_figure(plotly_fig) |
nothing calls this directly
no test coverage detected