| 73 | |
| 74 | |
| 75 | class 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 | |
| 110 | class TestPatchPolars(TestCase): |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…