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

Class TestPatchStreamz

hvplot/tests/testpatch.py:75–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74
75class TestPatchStreamz(TestCase):
76 def setUp(self):
77 if sys.version_info[:2] >= (3, 14):
78 raise SkipTest('streamz not compatible')
79 try:
80 import streamz # noqa
81 except ImportError:
82 raise SkipTest('streamz not available')
83 import hvplot.streamz # noqa
84
85 def test_streamz_dataframe_patched(self):
86 from streamz.dataframe import Random
87
88 random_df = Random()
89 self.assertIsInstance(random_df.hvplot, hvPlotTabular)
90
91 def test_streamz_series_patched(self):
92 from streamz.dataframe import Random
93
94 random_df = Random()
95 self.assertIsInstance(random_df.x.hvplot, hvPlotTabular)
96
97 def test_streamz_dataframes_patched(self):
98 from streamz.dataframe import Random
99
100 random_df = Random()
101 self.assertIsInstance(random_df.groupby('x').sum().hvplot, hvPlotTabular)
102
103 def test_streamz_seriess_patched(self):
104 from streamz.dataframe import Random
105
106 random_df = Random()
107 self.assertIsInstance(random_df.groupby('x').sum().y.hvplot, hvPlotTabular)
108
109
110class TestPatchPolars(TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…