Method
it_has_a_position
(
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
Tested by
no test coverage detected