MCPcopy Create free account
hub / github.com/scanny/python-pptx / legend_fixture

Method legend_fixture

tests/chart/test_chart.py:235–244  ·  view source on GitHub ↗
(self, request, Legend_, legend_)

Source from the content-addressed store, hash-verified

233 ]
234 )
235 def legend_fixture(self, request, Legend_, legend_):
236 chartSpace_cxml, has_legend = request.param
237 chartSpace = element(chartSpace_cxml)
238 chart = Chart(chartSpace, None)
239 expected_value, expected_calls = None, []
240 if has_legend:
241 expected_value = legend_
242 legend_elm = chartSpace.chart.legend
243 expected_calls.append(call(legend_elm))
244 return chart, Legend_, expected_calls, expected_value
245
246 @pytest.fixture
247 def plots_fixture(self, _Plots_, plots_):

Callers

nothing calls this directly

Calls 3

ChartClass · 0.90
elementFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected