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

Method notes_tf_fixture

tests/test_slide.py:232–242  ·  view source on GitHub ↗
(self, request, notes_placeholder_prop_, placeholder_, text_frame_)

Source from the content-addressed store, hash-verified

230
231 @pytest.fixture(params=[True, False])
232 def notes_tf_fixture(self, request, notes_placeholder_prop_, placeholder_, text_frame_):
233 has_text_frame = request.param
234 notes_slide = NotesSlide(None, None)
235 if has_text_frame:
236 notes_placeholder_prop_.return_value = placeholder_
237 placeholder_.text_frame = text_frame_
238 expected_value = text_frame_
239 else:
240 notes_placeholder_prop_.return_value = None
241 expected_value = None
242 return notes_slide, expected_value
243
244 @pytest.fixture
245 def placeholders_fixture(self, NotesSlidePlaceholders_, placeholders_):

Callers

nothing calls this directly

Calls 1

NotesSlideClass · 0.90

Tested by

no test coverage detected