Skip to content

Commit

Permalink
add exclude_from_toc for pptx slide layouts (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
viseshrp authored Oct 13, 2023
1 parent 297745e commit 343bbf4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/ansys/dynamicreporting/core/utils/report_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -3263,6 +3263,16 @@ def source_slide(self, value):
props["source_slide"] = value
self.set_property(props)

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

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


class datafilterREST(LayoutREST):
"""Representation of Data Filter Layout Template."""
Expand Down
2 changes: 2 additions & 0 deletions tests/test_report_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,8 @@ def test_pptx_slide() -> bool:
a = ro.pptxslideREST()
a.source_slide = "a"
assert a.source_slide == "a"
a.exclude_from_toc = "1"
assert a.exclude_from_toc == "1"


@pytest.mark.ado_test
Expand Down

0 comments on commit 343bbf4

Please sign in to comment.