-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathcmt-props.feature
More file actions
35 lines (23 loc) · 1005 Bytes
/
cmt-props.feature
File metadata and controls
35 lines (23 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Feature: Get comment properties
In order to characterize comments by their metadata
As a developer using python-docx
I need methods to access comment metadata properties
Scenario: Comment.id
Given a Comment object
Then comment.comment_id is the comment identifier
Scenario: Comment.author
Given a Comment object
Then comment.author is the author of the comment
Scenario: Comment.initials
Given a Comment object
Then comment.initials is the initials of the comment author
Scenario: Comment.timestamp
Given a Comment object
Then comment.timestamp is the date and time the comment was authored
Scenario: Comment.paragraphs[0].text
Given a Comment object
When I assign para_text = comment.paragraphs[0].text
Then para_text is the text of the first paragraph in the comment
Scenario: Retrieve embedded image from a comment
Given a Comment object containing an embedded image
Then I can extract the image from the comment