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

Method notes_ph_fixture

tests/test_slide.py:217–229  ·  view source on GitHub ↗
(self, request, placeholders_prop_)

Source from the content-addressed store, hash-verified

215 ]
216 )
217 def notes_ph_fixture(self, request, placeholders_prop_):
218 type_names, match = request.param
219 notes_slide = NotesSlide(None, None)
220 placeholders_ = []
221 for type_name in type_names:
222 placeholder_ = instance_mock(
223 request, NotesSlidePlaceholder, name="%s-placeholder" % type_name
224 )
225 placeholder_.placeholder_format.type = getattr(PP_PLACEHOLDER, type_name)
226 placeholders_.append(placeholder_)
227 placeholders_prop_.return_value = placeholders_
228 expected_value = None if match is None else placeholders_[match]
229 return notes_slide, expected_value
230
231 @pytest.fixture(params=[True, False])
232 def notes_tf_fixture(self, request, notes_placeholder_prop_, placeholder_, text_frame_):

Callers

nothing calls this directly

Calls 3

NotesSlideClass · 0.90
instance_mockFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected