MCPcopy Create free account
hub / github.com/holoviz/hvplot / test_buffer_stream

Method test_buffer_stream

hvplot/tests/teststreaming.py:22–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20 pd.testing.assert_frame_equal(plot[()].data, new_df)
21
22 def test_buffer_stream(self):
23 stream = Buffer(data=self.df, index=False)
24 plot = self.df.hvplot('x', 'y', stream=stream)
25 pd.testing.assert_frame_equal(plot[()].data, self.df)
26 new_df = pd.DataFrame([[7, 8], [9, 10]], columns=['x', 'y'])
27 stream.send(new_df)
28 pd.testing.assert_frame_equal(plot[()].data, pd.concat([self.df, new_df]))

Callers

nothing calls this directly

Calls 1

hvplotMethod · 0.80

Tested by

no test coverage detected