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

Method target_raise_fixture

tests/test_action.py:209–216  ·  view source on GitHub ↗
(self, request, action_prop_, part_prop_, _slide_index_prop_)

Source from the content-addressed store, hash-verified

207
208 @pytest.fixture(params=[(PP_ACTION.NEXT_SLIDE, 2), (PP_ACTION.PREVIOUS_SLIDE, 0)])
209 def target_raise_fixture(self, request, action_prop_, part_prop_, _slide_index_prop_):
210 action_type, slide_idx = request.param
211 action_setting = ActionSetting(None, None)
212 action_prop_.return_value = action_type
213 # this becomes the return value of ActionSetting._slides
214 part_prop_.return_value.package.presentation.slides = [0, 1, 2]
215 _slide_index_prop_.return_value = slide_idx
216 return action_setting
217
218 # fixture components ---------------------------------------------
219

Callers

nothing calls this directly

Calls 1

ActionSettingClass · 0.90

Tested by

no test coverage detected