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

Method fits_cx_pred_fixture

tests/text/test_layout.py:143–148  ·  view source on GitHub ↗
(self, request, _rendered_size_)

Source from the content-addressed store, hash-verified

141
142 @pytest.fixture(params=[(49, True), (50, True), (51, False)])
143 def fits_cx_pred_fixture(self, request, _rendered_size_):
144 rendered_width, expected_value = request.param
145 text_fitter = TextFitter(None, (50, None), "foobar.ttf")
146 point_size, line = 12, _Line("foobar", None)
147 _rendered_size_.return_value = (rendered_width, None)
148 return (text_fitter, point_size, line, _rendered_size_, expected_value)
149
150 # fixture components -----------------------------------
151

Callers

nothing calls this directly

Calls 2

TextFitterClass · 0.90
_LineClass · 0.90

Tested by

no test coverage detected