Пример #1
0
 def orient_raise_fixture(self):
     shape_elm = (
         an_sp().with_nsdecls('p').with_child(
             an_nvSpPr().with_child(
                 an_nvPr()))
     ).element
     shape = BasePlaceholder(shape_elm, None)
     return shape
Пример #2
0
 def sz_fixture(self, request):
     sz, expected_sz = request.param
     ph_bldr = a_ph()
     if sz is not None:
         ph_bldr.with_sz(sz)
     shape_elm = (an_sp().with_nsdecls('p').with_child(
         an_nvSpPr().with_child(an_nvPr().with_child(ph_bldr)))).element
     placeholder = BasePlaceholder(shape_elm, None)
     return placeholder, expected_sz
Пример #3
0
 def orient_fixture(self, request):
     orient, expected_orient = request.param
     ph_bldr = a_ph()
     if orient is not None:
         ph_bldr.with_orient(orient)
     shape_elm = (an_sp().with_nsdecls('p').with_child(
         an_nvSpPr().with_child(an_nvPr().with_child(ph_bldr)))).element
     placeholder = BasePlaceholder(shape_elm, None)
     return placeholder, expected_orient
Пример #4
0
 def idx_fixture(self, request):
     tagname, idx, ph_type, expected_idx = request.param
     shape_elm = self.shape_elm_factory(tagname, ph_type, idx)
     placeholder = BasePlaceholder(shape_elm, None)
     return placeholder, expected_idx