def template(): filename = Path(__file__).absolute().parent / '../data/example01.pptx' tpl = Template(filename) return tpl
def test_open_template_missing(): filename = Path(__file__).absolute().parent / '../data/non_existing.pptx' with pytest.raises(FileNotFoundError): tpl = Template(filename)