

def setup_hist_calc_counter(self):
    self.setup_subset()
    m = MagicMock()
    self.artist._calculate_histogram = m
    return m

dataset/ETHPy150Open glue-viz/glue/glue/viewers/histogram/tests/test_client.py TestHistogramLayerArtist.setup_hist_calc_counter/original