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