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

Method has_data_labels_set_fixture

tests/chart/test_plot.py:124–135  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

122 ]
123 )
124 def has_data_labels_set_fixture(self, request):
125 xChart_cxml, new_value, expected_cxml = request.param
126 # apply extended suffix to replace trailing '+' where present
127 if expected_cxml.endswith("+"):
128 expected_cxml = expected_cxml[:-1] + (
129 "(c:showLegendKey{val=0},c:showVal{val=1},c:showCatName{val="
130 "0},c:showSerName{val=0},c:showPercent{val=0},c:showBubbleSi"
131 "ze{val=0},c:showLeaderLines{val=1})"
132 )
133 plot = PlotFactory(element(xChart_cxml), None)
134 expected_xml = xml(expected_cxml)
135 return plot, new_value, expected_xml
136
137 @pytest.fixture
138 def series_fixture(self, SeriesCollection_, series_collection_):

Callers

nothing calls this directly

Calls 3

PlotFactoryFunction · 0.90
elementFunction · 0.85
xmlFunction · 0.85

Tested by

no test coverage detected