diff --git a/src/ansys/dynamicreporting/core/utils/report_objects.py b/src/ansys/dynamicreporting/core/utils/report_objects.py index d786ca04b..27d40ff36 100755 --- a/src/ansys/dynamicreporting/core/utils/report_objects.py +++ b/src/ansys/dynamicreporting/core/utils/report_objects.py @@ -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.""" diff --git a/tests/test_report_objects.py b/tests/test_report_objects.py index f10bca14a..78564ad9c 100755 --- a/tests/test_report_objects.py +++ b/tests/test_report_objects.py @@ -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