(self, replace_fixture)
| 128 | assert chart._chartSpace.xml == expected_xml |
| 129 | |
| 130 | def it_can_replace_the_chart_data(self, replace_fixture): |
| 131 | ( |
| 132 | chart, |
| 133 | chart_data_, |
| 134 | SeriesXmlRewriterFactory_, |
| 135 | chart_type, |
| 136 | rewriter_, |
| 137 | chartSpace, |
| 138 | workbook_, |
| 139 | xlsx_blob, |
| 140 | ) = replace_fixture |
| 141 | |
| 142 | chart.replace_data(chart_data_) |
| 143 | |
| 144 | SeriesXmlRewriterFactory_.assert_called_once_with(chart_type, chart_data_) |
| 145 | rewriter_.replace_series_data.assert_called_once_with(chartSpace) |
| 146 | workbook_.update_from_xlsx_blob.assert_called_once_with(xlsx_blob) |
| 147 | |
| 148 | # fixtures ------------------------------------------------------- |
| 149 |
nothing calls this directly
no test coverage detected