(context, name, type_str, builtin_str)
| 273 | |
| 274 | @when("I call add_style('{name}', {type_str}, builtin={builtin_str})") |
| 275 | def 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") |
nothing calls this directly
no test coverage detected
searching dependent graphs…