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

Function when_I_call_placeholder_insert_chart

features/steps/placeholder.py:129–134  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

127
128@when("I call placeholder.insert_chart(XL_CHART_TYPE.PIE, chart_data)")
129def when_I_call_placeholder_insert_chart(context):
130 chart_data = CategoryChartData()
131 chart_data.categories = ["Yes", "No"]
132 chart_data.add_series("Series 1", (42, 24))
133 placeholder = context.shape
134 context.placeholder = placeholder.insert_chart(XL_CHART_TYPE.PIE, chart_data)
135
136
137@when("I call placeholder.insert_picture('{filename}')")

Callers

nothing calls this directly

Calls 3

add_seriesMethod · 0.95
CategoryChartDataClass · 0.90
insert_chartMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…