MCPcopy Create free account
hub / github.com/dot-agent/nextpy / test_serialize_plotly

Function test_serialize_plotly

tests/components/graphing/test_plotly.py:28–36  ·  view source on GitHub ↗

Test that serializing a plotly figure works. Args: plotly_fig: The figure to serialize.

(plotly_fig: go.Figure)

Source from the content-addressed store, hash-verified

26
27
28def 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)

Callers

nothing calls this directly

Calls 2

serializeFunction · 0.90
serialize_figureFunction · 0.90

Tested by

no test coverage detected