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

Method _best_fit_fixture

tests/text/test_layout.py:127–140  ·  view source on GitHub ↗
(self, _BinarySearchTree_, _fits_inside_predicate_)

Source from the content-addressed store, hash-verified

125
126 @pytest.fixture
127 def _best_fit_fixture(self, _BinarySearchTree_, _fits_inside_predicate_):
128 text_fitter = TextFitter(None, (None, None), None)
129 max_size = 42
130 sizes_ = _BinarySearchTree_.from_ordered_sequence.return_value
131 predicate_ = _fits_inside_predicate_.return_value
132 font_size_ = sizes_.find_max.return_value
133 return (
134 text_fitter,
135 max_size,
136 _BinarySearchTree_,
137 sizes_,
138 predicate_,
139 font_size_,
140 )
141
142 @pytest.fixture(params=[(49, True), (50, True), (51, False)])
143 def fits_cx_pred_fixture(self, request, _rendered_size_):

Callers

nothing calls this directly

Calls 1

TextFitterClass · 0.90

Tested by

no test coverage detected