def getitem_fixture(self, request, SlideShapeFactory_, placeholder_): spTree_cxml, idx, offset = request.param spTree = element(spTree_cxml) placeholders = _SlidePlaceholders(spTree, None) shape_elm = spTree[offset] SlideShapeFactory_.return_value = placeholder_ return placeholders, idx, SlideShapeFactory_, shape_elm, placeholder_
def factory_fixture( self, ph_elm_, _SlideShapeFactory_, slide_placeholder_): slide_placeholders = _SlidePlaceholders(None) return ( slide_placeholders, ph_elm_, _SlideShapeFactory_, slide_placeholder_ )
def iter_fixture(self, request, SlideShapeFactory_, placeholder_): spTree_cxml, sequence = request.param spTree = element(spTree_cxml) placeholders = _SlidePlaceholders(spTree, None) SlideShapeFactory_.return_value = placeholder_ calls = [call(spTree[i], placeholders) for i in sequence] values = [placeholder_] * len(sequence) return placeholders, SlideShapeFactory_, calls, values
def len_fixture(self, request): spTree_cxml, length = request.param placeholders = _SlidePlaceholders(element(spTree_cxml), None) return placeholders, length
def factory_fixture(self, ph_elm_, _SlideShapeFactory_, slide_placeholder_): slide_placeholders = _SlidePlaceholders(None) return (slide_placeholders, ph_elm_, _SlideShapeFactory_, slide_placeholder_)
def placeholders(self): """ Instance of |_SlidePlaceholders| containing sequence of placeholder shapes in this slide. """ return _SlidePlaceholders(self)