コード例 #1
0
 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_)
コード例 #2
0
ファイル: test_slide.py プロジェクト: eduvant/python-pptx
 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_
     )
コード例 #3
0
ファイル: test_slide.py プロジェクト: eduvant/python-pptx
 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_
     )
コード例 #4
0
 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
コード例 #5
0
ファイル: test_slide.py プロジェクト: eduvant/python-pptx
 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
コード例 #6
0
 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_)
コード例 #7
0
 def slide_layout_fixture(self, parent_, slide_layout_):
     slide_placeholder = _SlidePlaceholder(None, parent_)
     return slide_placeholder, slide_layout_
コード例 #8
0
 def inherited_fixture(self, sp, _inherited_value_, int_value_):
     slide_placeholder = _SlidePlaceholder(sp, None)
     return slide_placeholder, _inherited_value_, int_value_
コード例 #9
0
 def direct_fixture(self, sp, width):
     slide_placeholder = _SlidePlaceholder(sp, None)
     return slide_placeholder, width
コード例 #10
0
ファイル: test_slide.py プロジェクト: eduvant/python-pptx
 def slide_layout_fixture(self, parent_, slide_layout_):
     slide_placeholder = _SlidePlaceholder(None, parent_)
     return slide_placeholder, slide_layout_
コード例 #11
0
ファイル: test_slide.py プロジェクト: eduvant/python-pptx
 def inherited_fixture(self, sp, _inherited_value_, int_value_):
     slide_placeholder = _SlidePlaceholder(sp, None)
     return slide_placeholder, _inherited_value_, int_value_
コード例 #12
0
ファイル: test_slide.py プロジェクト: eduvant/python-pptx
 def direct_fixture(self, sp, width):
     slide_placeholder = _SlidePlaceholder(sp, None)
     return slide_placeholder, width