def values_fixture(self, request): series_data = CategorySeriesData(None, None, None) expected_values = [1, 2, 3] for value in expected_values: series_data._data_points.append( instance_mock(request, CategoryDataPoint, value=value)) return series_data, expected_values
def values_ref_fixture(self, chart_data_): series_data = CategorySeriesData(chart_data_, None, None) values_ref_ = 'Sheet1!$V$42' chart_data_.values_ref.return_value = values_ref_ return series_data, chart_data_, values_ref_
def categories_fixture(self, chart_data_, categories_): series_data = CategorySeriesData(chart_data_, None, None) chart_data_.categories = categories_ return series_data, categories_
def categories_ref_fixture(self, chart_data_): series_data = CategorySeriesData(chart_data_, None, None) expected_value = categories_ref = 'Sheet1!$F$42' chart_data_.categories_ref = categories_ref return series_data, expected_value
def add_fixture(self, request, CategoryDataPoint_, data_point_): series_data = CategorySeriesData(None, None, None) value, number_format = 42, '0.0' return (series_data, value, number_format, CategoryDataPoint_, data_point_)