(context, style)
| 74 | |
| 75 | @given("a run having {style} style") |
| 76 | def given_a_run_having_style(context, style): |
| 77 | run_idx = { |
| 78 | "no explicit": 0, |
| 79 | "Emphasis": 1, |
| 80 | "Strong": 2, |
| 81 | }[style] |
| 82 | context.document = document = Document(test_docx("run-char-style")) |
| 83 | context.run = document.paragraphs[0].runs[run_idx] |
| 84 | |
| 85 | |
| 86 | @given("a run having {zero_or_more} rendered page breaks") |