MCPcopy Index your code
hub / github.com/python-openxml/python-docx / when_I_call_add_style

Function when_I_call_add_style

features/steps/styles.py:275–279  ·  view source on GitHub ↗
(context, name, type_str, builtin_str)

Source from the content-addressed store, hash-verified

273
274@when("I call add_style('{name}', {type_str}, builtin={builtin_str})")
275def when_I_call_add_style(context, name, type_str, builtin_str):
276 styles = context.document.styles
277 type = style_types[type_str]
278 builtin = bool_vals[builtin_str]
279 styles.add_style(name, type, builtin=builtin)
280
281
282@when("I delete a latent style")

Callers

nothing calls this directly

Calls 1

add_styleMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…