docstr: Test st.plotly_chart when sending data to Plotly's service.
docstr_tok: ["Test","st.plotly_chart","when","sending","data","to","Plotly","'s","service","."]
code: def test_st_plotly_chart_sharing(self):
      """Test st.plotly_chart when sending data to Plotly's service."""
      import plotly.graph_objs as go
  
      trace0 = go.Scatter(x=[1, 2, 3, 4], y=[10, 15, 13, 17])
  
      data = [trace0]
  
      with mock.patch(
          "streamlit.elements.plotly_chart."
          "_plot_to_url_or_load_cached_url"
      ) as plot_patch:
          plot_patch.return_value = "the_url"
          st.plotly_chart(data, sharing="public")
  
      el = self.get_delta_from_queue().new_element
      self.assertEqual(el.plotly_chart.HasField("figure"), False)
      self.assertNotEqual(el.plotly_chart.url, "the_url")
      self.assertEqual(el.plotly_chart.use_container_width, False)
  
file_path: streamlit/lib/tests/streamlit/elements/plotly_chart_test.py
imports: from unittest import mock
  import plotly.express
  from parameterized import parameterized
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 6 for calling the PyDeckTest obj's underlying member method code with example usage: obj.test_st_plotly_chart_sharing() without return types