def layout_ph_fixture(self, request, idx_, int_value_, _slide_layout_, slide_layout_, layout_placeholder_): slide_placeholder = _SlidePlaceholder(None, None) idx_.return_value = int_value_ slide_layout_.placeholders.get.return_value = layout_placeholder_ return (slide_placeholder, slide_layout_, int_value_, layout_placeholder_)
def xfrm_fixture(self, request, _effective_value_, int_value_): attr_name = request.param slide_placeholder = _SlidePlaceholder(None, None) _effective_value_.return_value = int_value_ return ( slide_placeholder, _effective_value_, attr_name, int_value_ )
def layout_ph_fixture( self, request, idx_, int_value_, _slide_layout_, slide_layout_, layout_placeholder_): slide_placeholder = _SlidePlaceholder(None, None) idx_.return_value = int_value_ slide_layout_.placeholders.get.return_value = layout_placeholder_ return ( slide_placeholder, slide_layout_, int_value_, layout_placeholder_ )
def layout_val_fixture(self, request, _layout_placeholder_, layout_placeholder_): has_layout_placeholder, expected_value = request.param slide_placeholder = _SlidePlaceholder(None, None) attr_name = 'width' if has_layout_placeholder: setattr(layout_placeholder_, attr_name, expected_value) _layout_placeholder_.return_value = layout_placeholder_ else: _layout_placeholder_.return_value = None return slide_placeholder, attr_name, expected_value
def layout_val_fixture( self, request, _layout_placeholder_, layout_placeholder_): has_layout_placeholder, expected_value = request.param slide_placeholder = _SlidePlaceholder(None, None) attr_name = 'width' if has_layout_placeholder: setattr(layout_placeholder_, attr_name, expected_value) _layout_placeholder_.return_value = layout_placeholder_ else: _layout_placeholder_.return_value = None return slide_placeholder, attr_name, expected_value
def xfrm_fixture(self, request, _effective_value_, int_value_): attr_name = request.param slide_placeholder = _SlidePlaceholder(None, None) _effective_value_.return_value = int_value_ return (slide_placeholder, _effective_value_, attr_name, int_value_)
def slide_layout_fixture(self, parent_, slide_layout_): slide_placeholder = _SlidePlaceholder(None, parent_) return slide_placeholder, slide_layout_
def inherited_fixture(self, sp, _inherited_value_, int_value_): slide_placeholder = _SlidePlaceholder(sp, None) return slide_placeholder, _inherited_value_, int_value_
def direct_fixture(self, sp, width): slide_placeholder = _SlidePlaceholder(sp, None) return slide_placeholder, width