Exemple #1
0
    def test_brush_indices_change(self, small_df, populated_config):
        ds = DataSource(small_df, None)
        hw = HistogramWidget(ds, 0, 0, 1.0, 400)
        hw.build()
        ds.brushed_indices = [1, 2, 3]

        assert hw.figure_widget.data[1].selectedpoints == ds.brushed_indices
        assert hw.figure_widget.data[0].visible
Exemple #2
0
 def test_normal_build(self, small_df, populated_config):
     ds = DataSource(small_df, None)
     hw = HistogramWidget(ds, 0, 0, 1.0, 400)
     root_widget = hw.build()
     assert isinstance(root_widget, widgets.VBox)