MCPcopy Index your code
hub / github.com/python-openxml/python-docx / it_knows_its_comment_id

Method it_knows_its_comment_id

tests/test_comments.py:185–189  ·  view source on GitHub ↗
(self, comments_part_: Mock)

Source from the content-addressed store, hash-verified

183 """Unit-test suite for `docx.comments.Comment`."""
184
185 def it_knows_its_comment_id(self, comments_part_: Mock):
186 comment_elm = cast(CT_Comment, element("w:comment{w:id=42}"))
187 comment = Comment(comment_elm, comments_part_)
188
189 assert comment.comment_id == 42
190
191 def it_knows_its_author(self, comments_part_: Mock):
192 comment_elm = cast(CT_Comment, element("w:comment{w:id=42,w:author=Steve Canny}"))

Callers

nothing calls this directly

Calls 2

CommentClass · 0.90
elementFunction · 0.85

Tested by

no test coverage detected