コード例 #1
0
ファイル: test_slide.py プロジェクト: scanny/python-pptx
 def name_set_fixture(self, request):
     xSld_cxml, new_value, expected_cxml = request.param
     base_slide = _BaseSlide(element(xSld_cxml), None)
     expected_xml = xml(expected_cxml)
     return base_slide, new_value, expected_xml
コード例 #2
0
ファイル: test_slide.py プロジェクト: scanny/python-pptx
 def name_get_fixture(self, request):
     sld_cxml, expected_name = request.param
     base_slide = _BaseSlide(element(sld_cxml), None)
     return base_slide, expected_name
コード例 #3
0
ファイル: test_slide.py プロジェクト: scanny/python-pptx
 def background_fixture(self, _Background_, background_):
     sld = element("p:sld/p:cSld")
     slide = _BaseSlide(sld, None)
     cSld = sld.xpath("//p:cSld")[0]
     _Background_.return_value = background_
     return slide, _Background_, cSld, background_
コード例 #4
0
ファイル: test_slide.py プロジェクト: scanny/python-pptx
 def name_set_fixture(self, request):
     xSld_cxml, new_value, expected_cxml = request.param
     base_slide = _BaseSlide(element(xSld_cxml), None)
     expected_xml = xml(expected_cxml)
     return base_slide, new_value, expected_xml
コード例 #5
0
ファイル: test_slide.py プロジェクト: scanny/python-pptx
 def name_get_fixture(self, request):
     sld_cxml, expected_name = request.param
     base_slide = _BaseSlide(element(sld_cxml), None)
     return base_slide, expected_name
コード例 #6
0
ファイル: test_slide.py プロジェクト: scanny/python-pptx
 def background_fixture(self, _Background_, background_):
     sld = element("p:sld/p:cSld")
     slide = _BaseSlide(sld, None)
     cSld = sld.xpath("//p:cSld")[0]
     _Background_.return_value = background_
     return slide, _Background_, cSld, background_