Пример #1
0
 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_
Пример #2
0
 def factory_fixture(
         self, ph_elm_, _SlideShapeFactory_, slide_placeholder_):
     slide_placeholders = _SlidePlaceholders(None)
     return (
         slide_placeholders, ph_elm_, _SlideShapeFactory_,
         slide_placeholder_
     )
Пример #3
0
 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_
Пример #4
0
 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
Пример #5
0
 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
Пример #6
0
 def len_fixture(self, request):
     spTree_cxml, length = request.param
     placeholders = _SlidePlaceholders(element(spTree_cxml), None)
     return placeholders, length
Пример #7
0
 def factory_fixture(self, ph_elm_, _SlideShapeFactory_,
                     slide_placeholder_):
     slide_placeholders = _SlidePlaceholders(None)
     return (slide_placeholders, ph_elm_, _SlideShapeFactory_,
             slide_placeholder_)
Пример #8
0
    def placeholders(self):
        """
		Instance of |_SlidePlaceholders| containing sequence of placeholder
		shapes in this slide.
		"""
        return _SlidePlaceholders(self)
Пример #9
0
 def len_fixture(self, request):
     spTree_cxml, length = request.param
     placeholders = _SlidePlaceholders(element(spTree_cxml), None)
     return placeholders, length
Пример #10
0
 def placeholders(self):
     """
     Instance of |_SlidePlaceholders| containing sequence of placeholder
     shapes in this slide.
     """
     return _SlidePlaceholders(self)