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

Method it_knows_its_page_width

tests/test_section.py:340–348  ·  view source on GitHub ↗
(
        self, sectPr_cxml: str, expected_value: Length | None, document_part_: Mock
    )

Source from the content-addressed store, hash-verified

338 ],
339 )
340 def it_knows_its_page_width(
341 self, sectPr_cxml: str, expected_value: Length | None, document_part_: Mock
342 ):
343 sectPr = cast(CT_SectPr, element(sectPr_cxml))
344 section = Section(sectPr, document_part_)
345
346 page_width = section.page_width
347
348 assert page_width == expected_value
349
350 @pytest.mark.parametrize(
351 ("value", "expected_cxml"),

Callers

nothing calls this directly

Calls 2

SectionClass · 0.90
elementFunction · 0.85

Tested by

no test coverage detected