MCPcopy Create free account
hub / github.com/scanny/python-pptx / it_has_a_position

Method it_has_a_position

tests/shapes/test_base.py:87–99  ·  view source on GitHub ↗
(
        self,
        shape_cxml: str,
        expected_x: int | None,
        expected_y: int | None,
        provides_part: ProvidesPart,
    )

Source from the content-addressed store, hash-verified

85 ],
86 )
87 def it_has_a_position(
88 self,
89 shape_cxml: str,
90 expected_x: int | None,
91 expected_y: int | None,
92 provides_part: ProvidesPart,
93 ):
94 shape_elm = cast("ShapeElement", element(shape_cxml))
95
96 shape = BaseShape(shape_elm, provides_part)
97
98 assert shape.left == expected_x
99 assert shape.top == expected_y
100
101 @pytest.fixture
102 def provides_part(self) -> ProvidesPart:

Callers

nothing calls this directly

Calls 2

BaseShapeClass · 0.90
elementFunction · 0.85

Tested by

no test coverage detected