Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/ansys/dynamicreporting/core/utils/report_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -3504,6 +3504,26 @@ def output_pptx(self, value):
props["output_pptx"] = value
self.set_property(props)

@property
def font_size(self):
return self.get_property().get("font_size")

@font_size.setter
def font_size(self, value):
props = self.get_property()
props["font_size"] = value
self.set_property(props)

@property
def html_font_scale(self):
return self.get_property().get("html_font_scale")

@html_font_scale.setter
def html_font_scale(self, value):
props = self.get_property()
props["html_font_scale"] = value
self.set_property(props)


class pptxslideREST(LayoutREST):
"""Representation of PPTX Slide Layout Template."""
Expand Down
11 changes: 7 additions & 4 deletions tests/test_report_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1895,12 +1895,15 @@ def test_squile_query() -> None:
def test_pptx() -> None:
a = ro.pptxREST()
a.input_pptx = "a"
succ = a.input_pptx == "a"
assert a.input_pptx == "a"
a.use_all_slides = 1
succ_two = a.use_all_slides == 1
assert a.use_all_slides == 1
a.output_pptx = "b"
succ_three = a.output_pptx == "b"
assert succ and succ_two and succ_three
assert a.output_pptx == "b"
a.font_size = "4"
assert a.font_size == "4"
a.html_font_scale = "0.5"
assert a.html_font_scale == "0.5"


@pytest.mark.ado_test
Expand Down
Loading