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

Method notes_slide_fixture

tests/parts/test_slide.py:435–451  ·  view source on GitHub ↗
(
        self,
        request,
        notes_slide_,
        part_related_by_,
        _add_notes_slide_part_,
        notes_slide_part_,
    )

Source from the content-addressed store, hash-verified

433
434 @pytest.fixture(params=[True, False])
435 def notes_slide_fixture(
436 self,
437 request,
438 notes_slide_,
439 part_related_by_,
440 _add_notes_slide_part_,
441 notes_slide_part_,
442 ):
443 has_notes_slide = request.param
444 slide_part = SlidePart(None, None, None, None)
445 part_related_by_.return_value = notes_slide_part_
446 add_calls = []
447 if not has_notes_slide:
448 part_related_by_.side_effect = KeyError
449 add_calls.append(call(slide_part))
450 notes_slide_part_.notes_slide = notes_slide_
451 return slide_part, add_calls, notes_slide_
452
453 @pytest.fixture
454 def slide_fixture(self, Slide_, slide_):

Callers

nothing calls this directly

Calls 2

SlidePartClass · 0.90
appendMethod · 0.45

Tested by

no test coverage detected