def test_serialize_plotly(plotly_fig: go.Figure):
    """Test that serializing a plotly figure works.

    Args:
        plotly_fig: The figure to serialize.
    """
    value = serialize(plotly_fig)
    assert isinstance(value, dict)
    assert value == serialize_figure(plotly_fig)
Test that serializing a plotly figure works.

    Args:
        plotly_fig: The figure to serialize.
    
tests/units/components/graphing/test_plotly.py