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

Function given_a_run_having_style

features/steps/text.py:76–83  ·  view source on GitHub ↗
(context, style)

Source from the content-addressed store, hash-verified

74
75@given("a run having {style} style")
76def 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")

Callers

nothing calls this directly

Calls 2

DocumentFunction · 0.90
test_docxFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…